continue:表示终止当前循环,开始下一次循环
break:终止所有循环
s = 0 while s < 3: s += 1 print(s) continue#'@' print(abc) print('end') #@处为continue: 1 2 3 end #@处为break: 1 end
continue:表示终止当前循环,开始下一次循环
break:终止所有循环
s = 0 while s < 3: s += 1 print(s) continue#'@' print(abc) print('end') #@处为continue: 1 2 3 end #@处为break: 1 end
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。