在Python中,当__iter__被调用时,"重置"一个迭代器是否是一个不好的做法? 1 人关注 ... def consume(iterator, n=None): "Advance the iterator n-steps ahead.
確定! 回上一頁