请问这个为什么不行呢? 答案中为什么要先定义一个count=0呢?
class Person(object):
def __init__(self,name):
Person.count=0
Person.count=Person.count+1
self.name=name
p1 = Person('Bob')
print Person.count
p2 = Person('Alice')
print Person.count
p3 = Person('Tim')
print Person.count