题目链接:https://nanti.jisuanke.com/t/T1050
用到print字符串小数点方法
n = int(input())
stus = []
num = 0
for i in range(0, n):
temp = int(input())
stus.append(temp)
num += temp
pass
print("%.2f"%(num / n))
题目链接:https://nanti.jisuanke.com/t/T1050
用到print字符串小数点方法
n = int(input())
stus = []
num = 0
for i in range(0, n):
temp = int(input())
stus.append(temp)
num += temp
pass
print("%.2f"%(num / n))