代码示例:(标识:python_ref_keyword_for_2)
python_ref_keyword_for_2.py
fruits = ["apple", "banana", "cherry"]

for x in fruits:
  print(x)
运行结果: