摘要: python面向对象进阶(下) item系列 __slots__方法 __next__ 和 __iter__实现迭代器 析构函数 上下文管理协议 元类一、item系列 把对象操作属性模拟成字典的格式。 例如:对象名['key'] = value class Foo: def __init__(sel 阅读全文
posted @ 2017-10-05 18:59 『心向阳﹡无所惧』 阅读(1912) 评论(0) 推荐(0) 编辑