11 2016 档案

摘要:class Test(object): def __get__(self, instance, type=None): """ 只让类访问, 而不让类的实例来访问。 具体是靠 __get__(self, instance, type=None) 方法来实现来的: 第二个参数 instance, 当 class.attr 的时... 阅读全文
posted @ 2016-11-28 09:47 鸪斑兔 阅读(237) 评论(0) 推荐(0) 编辑