标签:对象 print sel div item ble 通过 python iter
class C: def __iter__(self): return iter(‘python‘) obj = C() for item in obj: print(item)
__iter__
原文地址:https://www.cnblogs.com/dongmengze/p/9517804.html