下面是一个简单的示例: 例子1 class Parent1: def method1(self): print("This is method 1 from Parent1") class Parent2: def method2(self):