摘要: python自建 属性访问 (内部一致) 的 字典 date type 继承dict,重写 、`__settattr__` 就行了: ~~~python class adict(dict): def __getattr__(self, attr): return self[attr] def __s 阅读全文
posted @ 2018-01-04 01:17 willowj 阅读(301) 评论(0) 推荐(0) 编辑