有__iter__ 就一定有__next__ (它們是一組的) class mydouble:#類別 def __iter__(self): #疊代(類別變數) self.num = 2 #類別裡面的num(變數)等於2 ...
確定! 回上一頁