2015年5月26日

类方法,实例方法,

摘要: 类方法必须要有一个cls参数作为方法本身,不能获得类的示例属性class Person(object): __count = 0 def __init__(self,name): self.name=name Person.__count=Person.__c... 阅读全文

posted @ 2015-05-26 16:58 学渣的成长之路 阅读(334) 评论(0) 推荐(0) 编辑

导航