特殊关键词的使用(break与continue)

特殊关键字的使用(break与continue)

image-20221022134051259

注意,这两个关键字如果后面不可以声明语句,会报错,所以只能用这两个语句结尾

并且是默认跳出包裹此关键字最近的for循环

但是可以用标签来指定

image-20221022135007927

return语句

image-20221022135206533

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2023 Langxecho
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信