请问哪里错了?
sum = 0
x = 1
while True:
sum=sum+x
x = x + 1
if x >= 100:
break
if x%2==0:
continue
print sum
sum = 0
x = 1
while True:
sum=sum+x
x = x + 1
if x >= 100:
break
if x%2==0:
continue
print sum
2019-12-04
举报