大神指教 错在哪里
sum = 0
x = 1
n = 1
while True:
x = x*2
n = n+1
if n > 20:
break
sum = sum+x+1
print sum
运算结果 104853
sum = 0
x = 1
n = 1
while True:
x = x*2
n = n+1
if n > 20:
break
sum = sum+x+1
print sum
运算结果 104853
2019-12-13
举报