class Student(): count = 0 def __init__(self,name): self.name = name Student.count +=1a = Student("abc")b = Student("bcd")c = Student("124")print(Student.count)
Sign in to make a reply
bug管理员