我找不到问题在哪了……
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if x % 2 = 0:
continue
sum = sum + x
print sum
一直都是运行错误,为什么啊?
运行失败
File "index.py", line 7 if x % 2 = 0: ^ SyntaxError: invalid syntax
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if x % 2 = 0:
continue
sum = sum + x
print sum
一直都是运行错误,为什么啊?
File "index.py", line 7 if x % 2 = 0: ^ SyntaxError: invalid syntax
2018-08-04
举报