如下面内容
sum = 0 x = 1 n = 1 while True: sum = sum + x x = x * 2 n = n + 1 if n = 21: break print sum 在后面的if判断中,n=21的时候跳出来不行吗?
sum = 0 x = 1 n = 1 while True: sum = sum + x x = x * 2 n = n + 1 if n = 21: break print sum 在后面的if判断中,n=21的时候跳出来不行吗?
2015-06-09
举报