当n=20时,if n>20,还会参加一次循环???
sum = 0
x = 1
n = 1
while True:
if n>20:
break
sum=sum+x
x=x*2
n=n+1
print sum
当n=20时:还会继续执行sum=sum+x的代码????
sum = 0
x = 1
n = 1
while True:
if n>20:
break
sum=sum+x
x=x*2
n=n+1
print sum
当n=20时:还会继续执行sum=sum+x的代码????
2016-08-10
举报