程序2:混入类/描述符
摘要:
1 class Descriptor: 2 def __init__(self, name=None, **opts): 3 self.name = name 4 for key, value in opts.items(): 5 setattr(self, key, value) 6 7 def __set... 阅读全文
posted @ 2017-02-07 22:42 wzxds02 阅读(302) 评论(0) 推荐(0) 编辑