Python中break用法

Break 语句用在for和while循环中,作用是中止循环,不再运行代码块。图示如下:

实例代码如下:

>>>

猜你喜欢

转载自blog.csdn.net/weixin_42233629/article/details/81410758
今日推荐