从元组返回迭代器

  1. mytuple = ("apple", "banana", "cherry")
  2. myit = iter(mytuple)
  3.  
  4. print(next(myit))
  5. print(next(myit))
  6. print(next(myit))