📅  最后修改于: 2022-03-11 14:45:59.524000             🧑  作者: Mango
代码示例2
class A:
def method(self):
print("A.method() called")
class B(A):
def method(self):
print("B.method() called")
b = B()
b.method()