这个循环没有被break掉么? 是个死循环?
sum = 0
x = 1
n = 1
while True:
c=0
if c <=19:
sum+=pow(2,c)
c+=1
else:
break
print sum
sum = 0
x = 1
n = 1
while True:
c=0
if c <=19:
sum+=pow(2,c)
c+=1
else:
break
print sum
2018-12-06
举报