计算0--100内的奇数和 用continue语句 为什么不能用x = x + 2 来跳过呢
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if x = x + 2:
continue
sum = sum + x
print sum
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if x = x + 2:
continue
sum = sum + x
print sum
2019-07-07
举报