题解 | 学生基本信息输入输出

学生基本信息输入输出

https://www.nowcoder.com/practice/58b6a69b4bf943b49d2cd3c15770b9fd

num=input().split(';')
id=num[0]
num_score=num[1]
student_score_all=num_score.split(',')
student_score_1=format(float(student_score_all[0])+0.00001,'.2f')
student_score_2=format(float(student_score_all[1])+0.00001,'.2f')
student_score_3=format(float(student_score_all[2])+0.00001,'.2f')
print(f'The each subject score of No. {id} is {student_score_1}, {student_score_2}, {student_score_3}.')


全部评论

相关推荐

不愿透露姓名的神秘牛友
07-24 13:36
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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