我有一個簡單的類,我每次創建該類的實例時,我想的類變量來增加我應該怎麼做,與此代碼:遞增類變量動態地在Python
class Person:
person_count = 0
def __init__(self, username):
self.username = username
ashley = Person("Ash")
daphne = Person("Daph")
Person.person_count #I want this to be 2