class Student(object):
count =0
def __init__(self, name):
self.name = name
self.count_add()
def count_add(self):
Student.count=Student.count+1
#self.count=self.count+1
Sign in to make a reply
念念Bber
class Student(object):
count =0
def __init__(self, name):
self.name = name
self.count_add()
def count_add(self):
Student.count=Student.count+1
#self.count=self.count+1