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