摘要:
class Foo(object): def __getattr__(sel,item): print('y') def __getattribute(self,item): print('x') obj = Foo() obj.y 阅读全文
摘要:
class Foo(object): def __getattr__(sel,item): print('y') def __getattribute(self,item): print('x') obj = Foo() obj.y 阅读全文
|