代码示例:(标识:python_while)
python_while.py
i = 1
while i < 7:
  print(i)
  i += 1
运行结果: