"""标签:...,python,else,break,循环,print,执行 From: https://blog.51cto.com/u_13137233/6101577
for...else...
while...else...
当循环正常结束时,会执行else分支中内容
当循环被break结束时,不执行else分支内容
"""
# 输出1到10
for i in range(1, 10):
print(i)
if i == 3:
print("break跳出循环,不执行下面的else")
break
else:
print("正常结束循环,输出else")