Python while else 的使用

while

1

else

2

当while正常循环完,执行2中的内容,当循环被break打断,不会进去2.

猜你喜欢

转载自www.cnblogs.com/dxooo/p/11864431.html