会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
willowj
博客园
首页
新随笔
联系
订阅
管理
2018年1月4日
python自建 属性访问 (内部一致) 的 字典 data type
摘要: 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)
编辑
公告