Python continue 语句
Python continue 语句
Python continue 语句跳出本次循环,而break跳出整个循环。
continue 语句用来告诉Python跳过当http://www.xuanhe.net/前循环的剩余语句,然后继续进行下一轮循环。
continue语句用在while和for循环中。
Python 语言 continue 语句语法格式如下:

流程图:

实例:
实例(Python 2.0+)
以上实例执行结果:

Python continue 语句跳出本次循环,而break跳出整个循环。
continue 语句用来告诉Python跳过当http://www.xuanhe.net/前循环的剩余语句,然后继续进行下一轮循环。
continue语句用在while和for循环中。
Python 语言 continue 语句语法格式如下:

流程图:

实例:
以上实例执行结果:
