代码示例:(标识:python_ref_keyword_continue_2)
python_ref_keyword_continue_2.py
i = 0
while i < 9:
  i += 1
  if i == 5:
    continue
  print(i)
运行结果: