Python while else 的使用

while

1

else

2

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

posted @ 2019-11-15 09:42  dxooo  阅读(140)  评论(0)    收藏  举报