class Student(object):
count = 0
def __init__(self, name):
self.name = name
Student.count +=1
def get_count(object):
return object.count
Sign in to make a reply
我随心所往
class Student(object):
count = 0
def __init__(self, name):
self.name = name
Student.count +=1
def get_count(object):
return object.count