题解 | 学生基本信息输入输出
学生基本信息输入输出
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}.')