摘要:
class Foo(object): def __getattr__(sel,item): print('y') def __getattribute(self,item): print('x') obj = Foo() obj.y 阅读全文
posted @ 2018-09-19 19:59
徐建0304
阅读(96)
评论(0)
推荐(0)
|
摘要:
class Foo(object): def __getattr__(sel,item): print('y') def __getattribute(self,item): print('x') obj = Foo() obj.y 阅读全文
posted @ 2018-09-19 19:59
徐建0304
阅读(96)
评论(0)
推荐(0)
|