Python continue语句

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

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

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

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

Python————12、continue语句

流程图:

Python————12、continue语句

实例:

Python————12、continue语句

以上实例执行结果:

Python————12、continue语句

相关文章:

  • 2022-12-23
  • 2021-07-11
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
猜你喜欢
  • 2021-05-13
  • 2021-09-16
  • 2022-12-23
  • 2021-11-10
  • 2021-11-29
相关资源
相似解决方案