類別變數. 既然平常能宣告變數,那在類別裡面定義一個變數也是妥妥的吧 class Cat: def __init__(self, name): self.name = name print("I'm a Constructor") def ...
確定! 回上一頁