题解 | #班级管理#
班级管理
https://www.nowcoder.com/practice/e5539db11767449ab2fb68ed3c2446d0
class Student(): def __init__(self,name,number,score,grend): self.name = name self.number = number self.score = score self.grend = grend name = input() number = input() #学号 score = input() grend = input().split() stu = Student(name,number,score,grend) print(f"{stu.name}'s student number is {stu.number}, and his grade is {stu.score}. He submitted {len(stu.grend)} assignments, each with a grade of {' '.join(stu.grend)}")