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

学生基本信息输入输出

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

a = input().split(";")
num = int(a[0])
a,b,c = map(float,a[1].split(","))
a = round(a+0.00001,2)
b = round(b+0.00001,2)
c = round(c+0.00001,2)
print(f"The each subject score of No. {num} is {a:.2f}, {b:.2f}, {c:.2f}.")

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

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