为什么这个不对?
sum = 0
x = 2
n = 0
while True:
x = x**n
n = n + 1
sum = sum + x
if n > 20:
break
print (sum)
这样写为什么是错的?
sum = 0
x = 2
n = 0
while True:
x = x**n
n = n + 1
sum = sum + x
if n > 20:
break
print (sum)
这样写为什么是错的?
2017-04-20
举报