摘要: 3. Descriptor介绍3.1 Descriptor代码示例3.2 定义3.3 Descriptor Protocol(协议)3.4 Descriptor调用方法4. 基于Descriptor实现的功能4.1 property4.2 函数和方法,绑定与非绑定4.3 super5. 结尾3. Descriptor介绍3.1 Descriptor代码示例class RevealAccess(object):"""创建一个Descriptor类,用来打印出访问它的操作信息"""def __init__(self, initval=No 阅读全文
posted @ 2012-09-18 16:18 btchenguang 阅读(7128) 评论(3) 推荐(2) 编辑