x=x*2 错误提示 什么原因?
sum = 0
x = 1
n = 1
while True:
sum = sum + x
x = x * 2
n = n + 1
if n > 20 :
break print sum
为什么会提示 x=x*2 错误??
sum = 0
x = 1
n = 1
while True:
sum = sum + x
x = x * 2
n = n + 1
if n > 20 :
break print sum
为什么会提示 x=x*2 错误??
2017-05-03
举报