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

import re
scores = re.split(r'[,;]',input())
data_1 = float(scores[1]) + 0.0001
data_2 = float(scores[2]) + 0.0001
data_3 = float(scores[3]) + 0.0001
print(f'The each subject score of No. {scores[0]} is {data_1:.2f}, {data_2:.2f}, {data_3:.2f}.')

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务