Python continue 语句

Python continue 语句

Python continue 语句跳出本次循环,而break跳出整个循环。

continue 语句用来告诉Python跳过当http://www.xuanhe.net/前循环的剩余语句,然后继续进行下一轮循环。

continue语句用在while和for循环中。

Python 语言 continue 语句语法格式如下:

 

 

流程图:

cpp_continue_statement

实例:

实例(Python 2.0+)

 

 

以上实例执行结果:

 

posted @ 2019-08-31 17:05  danjiu  阅读(896)  评论(0编辑  收藏  举报
友情链接: 家电维修