迭代对象,默认值
def next(iterator, default=None):
"""
next(iterator[, default])
Return the next item from the iterator. If default is given and the iterator
is exhausted, it is returned instead of raising StopIteration.
"""
pass
当给出了default的值后,元素耗尽,会返回default的值而不是报错