Python中return、break、continue三者的区别

python学习网 2017-09-07 07:16:02
return会跳出函数(遇到它,函数就结束)
break会跳出当前循环
continue会跳过本次循环,继续。
阅读(782) 评论(0)