1.break

break:跳出整个循环,不再执行循环后的内容
10.Python中的语句控制器break,continue,exit()

2.continue

continue:跳出本次循环,continue后面的代码不会执行
10.Python中的语句控制器break,continue,exit()

3.exit()

exit():结束程序的运行
10.Python中的语句控制器break,continue,exit()
exit()也是一个函数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-02-24
  • 2021-12-31
猜你喜欢
  • 2021-09-17
  • 2021-11-22
  • 2022-12-23
  • 2021-09-15
  • 2021-11-10
  • 2021-09-18
  • 2021-11-29
相关资源
相似解决方案