Is it necessary to explicitly call iter() on a custom iterator class in python?

前端 未结 0 788

Image we have this custom iterator class:

class Counter: 
             def __init__(self, low,high):
                    self.current=low-1 
                          


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