和答案一样,为什么失败
class Person(object):
__count = 0
@classmethod
def how_many(cls):
return cls.__count
def __init__(self,name):
self.name=name
Person.__count=Person.__conut+1
print Person.how_many()
p1 = Person('Bob')
print Person.how_many()
还有实列方法可以访问类的私有属性吗