我的代码哪里有问题?
sum = 0
x = 0
while True:
if x > 100:
break
if x % 2 == 0:
continue
sum = sum + x
x = x + 1
print sum
如上,运行不出结果
sum = 0
x = 0
while True:
if x > 100:
break
if x % 2 == 0:
continue
sum = sum + x
x = x + 1
print sum
如上,运行不出结果
2020-02-20
举报