源代码
x = iter(["apple", "banana", "cherry"]) print(next(x)) print(next(x)) print(next(x))
运行结果