Discuss / Python / 交作业

交作业

Topic source

bug管理员

#1 Created at ... [Delete] [Delete and Lock User]
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)

  • 1

Reply