没看懂,求解答
来源:3-2 如何实现可迭代对象和迭代器对象(2)

啊52HZ
2017-02-19
def next(self): if self.index == len(self.cities): raise StopIteration city = self.cities[self.index] self.index += 1 return self.getweather(city)
这一段能具体讲嘛?没看懂
写回答
1回答
-
程序员硕
2017-05-12
哪不懂
00
相似问题