解题思路:
注意事项:
参考代码:
class Student(): def input(self, student_id, name, score): self.student_id = student_id self.name = name self.Chinese_score = score[0] self.math_score = score[1] self.English = score[2] def print(self): print(self.student_id, self.name, self.Chinese_score, self.math_score, self.English, sep=",") all_list = [] number = int(input()) for i in range(number): s = Student() num_list = list(input().split()) t = num_list[2:] s.input(num_list[0], num_list[1], t) all_list.append(s) for j in all_list: j.print()
0.0分
0 人评分
蓝桥杯历届试题-九宫重排 (C++代码)浏览:2812 |
【排队买票】 (C语言代码)浏览:944 |
WU-判定字符位置 (C++代码)浏览:1471 |
简单的a+b (C语言代码)浏览:661 |
【求[X,Y]内被除3余1并且被除5余3的整数的和】 (C语言代码)浏览:703 |
printf基础练习2 (C语言代码)浏览:653 |
Tom数 (C语言代码)浏览:517 |
C二级辅导-分段函数 (C语言代码)浏览:659 |
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)浏览:712 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:569 |