W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_ref_next_2.py:
mylist = iter(["apple", "banana", "cherry"]) x = next(mylist, "orange") print(x) x = next(mylist, "orange") print(x) x = next(mylist, "orange") print(x) x = next(mylist, "orange") print(x)