continue 循环习题 我这么写问什么不对
sum = 0
x = 0
while True:
sum = sum + x
x=x+1
if x > 100:
break
if x % 2 == 0:
continue
print sum
sum = 0
x = 0
while True:
sum = sum + x
x=x+1
if x > 100:
break
if x % 2 == 0:
continue
print sum
2017-11-23
举报