Python迭代器模式

迭代器模式,不一次性直接返回結果,調用一次方法,返回一個。python class Iterator(object): def __init__(self, iterator_list): super().__init__() self.list = iterator_list self.current_index = 0 s
相關文章
相關標籤/搜索