注释:每次使用类创建新对象时,都会自动调用__init__() 函数。 实例. 为Student 类添加__init__() 函数: class Student(Person): def __init__(self, fname, lname): ...
確定! 回上一頁