输出结果为2550?
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if not x%2==0:
continue
sum = sum+x
print sum
为什么输出结果不正确,是2550.而不是2500
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if not x%2==0:
continue
sum = sum+x
print sum
为什么输出结果不正确,是2550.而不是2500
2018-10-28
举报