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