私有属性从外部访问, 请教 _Person__count 用法
>>> class Person(object):
__count = 0
def __init__(self, name):
Person.__count += 1
self.name = name
print Person.__count
>>> p1 = Person('Bob')
1
>>> p2 = Person('Alice')
2
>>> p1._Person__count
2
>>> p1._Person__count = 3
>>> p1._Person__count
3
>>> p2._Person__count
2
>>> Person.__count
Error
# Person.__count 是私有类属性,但是在IDLE无意中发现自动填充了 p1._Person__count这是可以访问的,大神可以说说这里的用法吗?多了单'_' 少了'.'