题解 | 班级管理

class Student:
    def __init__(self,name,id,grade,grade_list):
            self.name = name
            self.id = id
            self.grade = grade
            self.grade_list = grade_list
name = input()
id = input()
grade = int(input())
grade_list = input().split()
stu = Student(name,id,grade,grade_list)
str = ' '.join(grade_list)
print(f'{stu.name}\'s student number is {stu.id}, and his grade is {stu.grade}. He submitted {len(stu.grade_list)} assignments, each with a grade of '+str)

全部评论

相关推荐

码农索隆:有点耳熟,你们是我教过最差的一届
点赞 评论 收藏
分享
程序员小白条:你是沟通了900个,不是投了900份简历,你能投900份,意味着对面都要回复你900次,你早就找到实习了,没亮点就是这样的,别局限地区,时间投的也要早,现在都要7月了
点赞 评论 收藏
分享
零OFFER战士:另一个版本查看图片
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务