代码示例:(标识:python_iterator_loop_1)
python_iterator_loop_1.py
mytuple = ("apple", "banana", "cherry")

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