说明创建实例只运行了__init__?
class Person(object): count = 0 def __init__(self, name): self.name = name Person.count += 1 说明创建实例只运行了__init__?
class Person(object): count = 0 def __init__(self, name): self.name = name Person.count += 1 说明创建实例只运行了__init__?
2015-09-14
举报