要創建類的實例,可以使用類名調用該類,並傳遞其 __init__ 方法接受的任何參數。 ## This would create first object of Employee class emp1 = Employee("Maxsu", 2000) ...
確定! 回上一頁