break位置问题
sum = 0
x = 1
n = 1
while True:
if n > 20:
break
sum = sum + x
x = x * 2
n = n + 1
print sum
break为什么这样输入不与if语句对齐;输入break该如何缩进输入?
sum = 0
x = 1
n = 1
while True:
if n > 20:
break
sum = sum + x
x = x * 2
n = n + 1
print sum
break为什么这样输入不与if语句对齐;输入break该如何缩进输入?
2017-08-17
举报