易百教程

39、Python 中的 pass 和 continue 有什么区别?

Python continue 语句使循环从下一次迭代中恢复。相反, pass 语句指示什么都不做,其余代码照常执行。