代码示例:(标识:python_for)
python_for.py
fruits = ["apple", "banana", "cherry"]
for x in fruits:
  print(x)
运行结果: