a,b=input().split(";")
x,y,z=b.split(",")
print("The each subject score of No. {} is {:0.2f}, {:0.2f}, {:0.2f}".format(a,round(float(x),2),round(float(y),2),round(float(z),2)))
  1. ??有几件事还不知道
  2. 1.print输出语句太长了,中间怎么断开来着?
  3. 2.print输出{}里格式% 2f等怎么用控制长度来着?
  4. 3.round用完之后,为什么和程序三位小数 四舍五入或者 入还是出,是不同的?方法待确认
a,b=input().split(";")
x,y,z=b.split(",")
print("The each subject score of No. {} is {:0.2f}, {:0.2f}, {:0.2f}.".format(a,float(x)+0.001,float(y),round(float(z),2)))

看了大神的方法,发现都加了0.0001这样的,python中精度不够吗??