1.1 编写程序,根据输入的三科成绩值,计算并打印平均值和总分。说明:按格式化输出;例如:输入为math = 130, eng = 101, chi = 126;输出为print(“average score is {}, sum score is {}”.format(...))
这提示不是很明显了嘛?就是考察字符串格式化啊就是看str.format()怎么用