题解 | #班级管理#
班级管理
https://www.nowcoder.com/practice/e5539db11767449ab2fb68ed3c2446d0
# 设计表格 class Student: name = None # 记录学生姓名 number = None # 记录学生学号 score = None # 记录学生成绩 grade = None # 记录学生等级 # 创建对象 stu_1 = Student # 为对象输入信息 stu_1.name = input() stu_1.number = int(input()) stu_1.score = int(input()) stu_1.grade = input().split() # 获取对象中的信息 print(f"{stu_1.name}'s student number is {stu_1.number}, and his grade is {stu_1.score}. He submitted {len(stu_1.grade)} assignments, each with a grade of {' '.join(stu_1.grade)}")