def show_students(self): if not self.students: print("没有学生信息") else: print("学号\t姓名\t班级\t电话\t家庭住址\t宿舍号") for student in self.students: print("{}\t{}\t{}\t{}\t{}\t{}".format(student.id, student.name, student.classname, student.phone, student.address, student.dorm))

def show_studentsself print学号t姓名t班级t电话t家庭住址t宿舍号 for student in selfstudents printtttttformatstudentid studentname studentclassname studentphone studentaddress studentdorm添加2 如

原文地址: https://www.cveoy.top/t/topic/g1l0 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录