求职大师
首页
院校
教育
新闻
生活
首页
教育
python问题。找GPA最大值,我是新手,麻烦大神了。
python问题。找GPA最大值,我是新手,麻烦大神了。
时间:
2022-04-26 17:40:11
浏览:67
来源:求职大师
两种方法,第一种,在makeStudent前加上一行 s = Student(),然后调用s.makeStudent(infile.readline())第二种,在class 中的makeStudent函数,加上装饰器@staticmethod,然后调用Student.makeStudent(infile.readline())