为什么getattribute需要返回父类才能执行getattr
class C:def __getattr__(self, name):
print('GET')
def __getattribute__(self, name):
print(2)
return super().__getattribute__( name)
def __setattr__(self, name, value):
print(3)
def __delattr__(self, name):
print(4)
请教一下各位大神,为什么getattribute需要返回父类才能执行getattr。
求助各位大神{:9_233:}
页:
[1]