break与continue区别

break

强制跳出所有循环,不执行剩余循环语句。

continue

强制跳出当前一次循环,继续下次循环。

 

posted @ 2020-04-20 22:16  DannyBoy~  阅读(155)  评论(0编辑  收藏  举报