一正常执行则继续执行else里面的内容:for i in range(3): print(i)else: print("hello")二break语句退出之后不执行else后面的语句
for i in range(3): breakelse: print("hi")