Manual
Retrieve the next item from the iterator by calling its __next__() method. If default is given, it is returned if the iterator is exhausted, otherwise StopIteration is raised.
直译
通过调用迭代器的__next__()方法来检索它的下一项。如果给定default,当迭代尽时将返回这个值,否则引发StopIteration。
实例
>>> a = [1, 2, 3, 4, 5]
>>> a = iter([1, 2, 3, 4, 5])
>>> next(a)
1
>>> next(a)
2
>>> next(a)
3
···