📜  como usar o Self no python 代码示例

📅  最后修改于: 2022-03-11 14:47:04.496000             🧑  作者: Mango

代码示例1
def __init__(self):
   self.mtd([1, 2, 2, 3, 3, 3, 4, 4, 4, 4])

def mtd(self, data):
   for value in data:
       print(value)