题解 | #累加数与平均值#
累加数与平均值
https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697
age_list = [int(i) for i in input().split()] total = 0 average = 0.0 for i in age_list: total += i print(total,'%.1f'%(total/len(age_list)))
累加数与平均值
https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697
age_list = [int(i) for i in input().split()] total = 0 average = 0.0 for i in age_list: total += i print(total,'%.1f'%(total/len(age_list)))
相关推荐