类下的迭代器__iter__() 2017-12-05 本文已影响0人 Future石 def iter(self): return self 返回值类型不限,注意在引用该类的迭代类型,返回值类型与引用的迭代类型要相同