摘要: 授权: 阅读全文
posted @ 2018-12-14 14:55 valar-dohaeris 阅读(143) 评论(0) 推荐(0)
摘要: # class Foo: # x=1 # def __init__(self,y): # self.y=y # # def __getattr__(self, item): # print('执行__getattr__') # # f1=Foo(10) # print(f1.y) # print(getattr(f1,'y')) #le... 阅读全文
posted @ 2018-12-14 10:36 valar-dohaeris 阅读(188) 评论(0) 推荐(0)