摘要: 当getattr与__getattribute__同时出现时:先找__getattribute__,如果抛出异常则执行getattribute 1 class Foo: 2 def __init__(self,x): 3 self.x=x 4 def __getattr__(self, item): 阅读全文
posted @ 2016-12-29 15:15 陨落&新生 阅读(167) 评论(0) 推荐(0) 编辑