 |
 |
 |
Python 语言参考手册Python Reference Manual |
 |
 |
6.11 continue语句 The continue statement
-
continue may only occur syntactically nested in a for or
while loop, but not nested in a function or class definition or
try statement within that loop.6.1It continues with the next cycle of the nearest enclosing loop.
continue在句法上只能出现在for或while循环中, 但不能出现在循环中的函数定义或类定义中.6.1它重新开始最内层的循环. 6.2
注脚
- ... loop.6.1
- It may
occur within an except or else clause. The
restriction on occurring in the try clause is implementor's
laziness and will eventually be lifted.
- ... 但不能出现在循环中的函数定义或类定义中.6.1它重新开始最内层的循环.6.2
- 它可以出现在子句中, 限制在try中的出现是由于实现者的缓慢并且最终会实现的.
 |
 |
 |
Python 语言参考手册Python Reference Manual |
 |
 |
版本 2.3.3, 文件最后更新时间 译文最后修改: 二月 18, 2004.