会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
401561993
博客园
首页
新随笔
联系
管理
订阅
2022年7月22日
while 循环和else
摘要: while 循环中,只要没被break打断,循环会执行完循环体内所以的内容 count = True while count: print(1) count = False print(2) 运行结果:1 2 while循环与else组合使用,循环中如果被break打断,则slse不会执行 coun
阅读全文
posted @ 2022-07-22 11:24 401561993
阅读(65)
评论(0)
推荐(0)
编辑
公告