摘要: 循环语句while+else: 即:当一个while循环没有被break强制中断,循环执行完毕后开始执行else语句分支下的子代码。如果while循环被强制中断,则else的子程序将无法执行。 其结构为: eg: count = 1 while count < 4: print(count) cou 阅读全文
posted @ 2022-03-08 20:38 *sunflower* 阅读(103) 评论(0) 推荐(0)