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