File "/liaoxf/test_student.py", line 44, in test_invalid
s1.get_grade()
def get_grade(self): if self.score < 0 or self.score > 100: raise ValueError return -1 if self.score >= 80: return 'A' if self.score >= 60: return 'B' return 'C'
Sign in to make a reply
Nil_大黄
File "/liaoxf/test_student.py", line 44, in test_invalid
s1.get_grade()