代码在线运行成功,但是在3.6的idle中运行没有结果,请问该怎么改?
class Person(object):
count = 0
def __init__(self,name):
self.name = name
Person.count += 1
p1 = Person('Bob')
print (Person.count)
p2 = Person('Alice')
print (Person.count)
p3 = Person('Tim')
print (Person.count)