代码示例:(标识:python_ref_keyword_break_1)
python_ref_keyword_break_1.py
for i in range(9):
  if i > 5:
    break
  print(i)
运行结果: