首页 > TAG信息列表 > StudentDoc
实验五
实验任务5:自定义模块及模块导入编程 一:把类StudentDoc保存到模块student.py中 '''student.py''' class StudentDoc: '''学生档案管理''' def __init__(self,students_number,studens_name,major,python_score): self._studen实验5
'''student.py''' class StudentDoc: '''学生档案管理''' def __init__(self,students_number,studens_name,major,python_score): self._students_number=students_number self._studens_name=st实验5
class StudentDoc: def_ init_ (self,n,a,m,s): self. n=n self._ aa self._ mm self._ s=s def set(self,s): self._ S=s def date(self): print(f'#%: fself._ a),#5: (self._ ),+x: fself._ m),Æá: fself._ s)') def score(self): print(f(self._ s))实验5
class StudentDoc: def __init__(self, number, name, subject, python): self.number = number self.name = name self.subject = subject self.python = python def info(self): print('Number:', str(self.number),task5
class StudentDoc: def __init__(self, number, name, major, python): self._number = number self._name = name self._major = major self._python = python def info(self): print(f'学号: {self._number}, 姓名: {sel