Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

while python除了正常的while 循环,还可以在while循环后带上一个else分支,那么执行流程是怎么样的呢? 话不多说,上来三段代码: # while 循环如果被打断,则不执行else def func(): count = 1 while count < 5: print(count) count += 1 ...

参考

参考