摘要: 1 class Student(object): 2 __slots__ = ('name', 'age') # 用tuple定义允许绑定的属性名称 阅读全文
posted @ 2017-05-03 11:25 hutzerg 阅读(94) 评论(0) 推荐(0) 编辑