class Student(object): count = 0 def __init__(self, name): self.name = name self.__class__.count += 1 self.get_count() def get_count(self): print(self.count)
Sign in to make a reply
最帅的仔