"""
break:跳出整个循环 不会再执行循环后面的内容
continue:跳出本次循环,continue后面的代码不会执行
exit():结束程序的运行
"""
#break
for i in range(10): # 0~9
if i == 5:
break
print(i)
print('hello')
#continue
for i in range(10): # 0~9
if i == 5:
continue
print(i)
print('hello')
#exit
f
or i in range(10): # 0~9
if i == 5:
exit()
print(i)
print('hello')