题解 | 累加数与平均值
累加数与平均值
https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697
import sys age_list = [int(a) for a in input().split()] total = sum(age_list) print(total,round(total/len(age_list),1),sep=" ")
累加数与平均值
https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697
import sys age_list = [int(a) for a in input().split()] total = sum(age_list) print(total,round(total/len(age_list),1),sep=" ")
相关推荐