How to create reusable generator classes in Python?

前端 未结 0 1386
一整个雨季
一整个雨季 2020-12-02 00:07

I need to create generator which can be use more than one time. I have classes like this:

class iter_maker:
    def __iter__(self):
        return self

class         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题