def __init__(self,name,age,qq,classes_nid): self.nid=identifier.StudentNid(self.db_path) self.name=name self.age=age self.qq=qq self.classes_nid=classes_nid self.score=Score(self.nid)
def __init__(self, name, password, age, qq, classes_nid, score_nid): self.nid = identifier.StudentNid(self.db_path) self.name = name self.password = password self.age = age self.qq = qq self.classes_nid = classes_nid self.score_nid = score_nid
def __init__(self, name, age, qq): # def __init__(self,name,age,qq,classes_nid): self.nid = identifier.StudentNid(self.db_path) self.name = name self.age = age self.qq = qq # self.classes_nid=classes_nid # self.score=Score(self.nid) self.create_time = time.strftime('%Y-%m-%d %X')
def __init__(self, name, age, qq, classes_nid): """ :param name: 学生姓名 :param age: 学生年龄 :param qq: 学生qq号 :param classes_nid: 班级id """ self.nid = identifier.StudentNid( self.db_path) # identifier模块下的StudentNid对象中的db_path = 学生的目录信息 # self 实例化后的学生对象 self.name = name self.age = age self.qq = qq self.classes_nid = classes_nid self.score = Score(self.nid) # 成绩
def __init__(self, name, age, classes_id): self.nid=identifier.StudentNid(Student.db_path) self.name=name self.age=age self.classesId=classes_id self.score=Score(self.nid)