Continue语句

一个 continue 语句导致周围循环结构的下一次迭代。 它只允许在一个循环中。 continue语句是嵌套块的语法糖:

  1. while expr1:
  2. stmt1
  3. continue
  4. stmt2

Is equivalent to:

  1. while expr1:
  2. block myBlockName:
  3. stmt1
  4. break myBlockName
  5. stmt2