while else语句
生活随笔
收集整理的這篇文章主要介紹了
while else语句
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
#else 用于檢測(cè)循環(huán)中間是否有被打斷
count = 0
while count <=5:
print('loop',count)
count +=1
else:
print('程序正常執(zhí)行完畢,中間沒有被打斷!')
count = 0
while count <=5:
print('loop',count)
count +=1
else:
print('程序正常執(zhí)行完畢,中間沒有被打斷!')
轉(zhuǎn)載于:https://www.cnblogs.com/anzhangjun/p/8364865.html
總結(jié)
以上是生活随笔為你收集整理的while else语句的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: USACO-Section1.3 Pal
- 下一篇: kvm虚拟机网络设置隔离模式(一键she