题解 | #计算平均成绩#
计算平均成绩
http://www.nowcoder.com/practice/30a28eb88c3f4e87be1a5b397ddd6fe2
map解包+格式化
scores=input().split(" ")
score1,score2,score3,score4,score5=map(int, scores)
print("{:.1f}".format((score1+score2+score3+score4+score5)/5))
计算平均成绩
http://www.nowcoder.com/practice/30a28eb88c3f4e87be1a5b397ddd6fe2
map解包+格式化
scores=input().split(" ")
score1,score2,score3,score4,score5=map(int, scores)
print("{:.1f}".format((score1+score2+score3+score4+score5)/5))
相关推荐