attribclass?Person(object):
????__count?=?0
????def?__init__(self,?name):
????????Person.__count?=?Person.__count?+?1
????????self.name?=?name
????????print?Person.__count
p1?=?Person('Bob')
p2?=?Person('Alice')
print?Person.__countuteerror
python進階4-7 需要輸出attributeerror 不成功
weibo_雷神傷感_0
2016-05-23 09:39:58