题目数据不严谨啊。。。
import math
id, scoreList = map(str, input().split(';'))
sl = list(map(float, scoreList.split(',')))
print('The each subject score of No. {} is {:.2f}, {:.2f}, {:.2f}.'.format(id, \
math.ceil(sl[0]*100)/100, \
sl[1], \
sl[2]))
#math.ceil(sl[1]*100)/100, \
#math.ceil(sl[2]*100)/100))
京公网安备 11010502036488号