* python3中統一了類與類型的概念,類就是類型
* lis和lis2都是實例化的對象,所以lis使用append方法和lis2無關python
class OldboyStudent: school = 'oldboy' def __init__(self, name, age, gender): self.name = name self.age = age self.sex = gender def choose_course(self, name): print(f'{name} choosing course') stu1 = OldboyStudent('nash', 18, 'male')