kinkon
发表于 2019-12-19 11:27:43
def fun219(*x):
y = list(x)
y.sort()
m = 0
for i in range(1, len(y)-1):
m += int(y)
i += 1
return m/(i-1)
n = fun219(95,33,72,88,98,45,66,72)
if n != -1:
print('fun219平均值为:',n)
liyidong3000
发表于 2021-9-1 16:20:05
def fun219(*parm):
length=len(parm)
max1=max(parm)
min1=min(parm)
aver=(sum(parm)-min1-max1)/(length-2)
return(aver)
print(fun219(95, 33, 72, 88, 98, 45, 66, 72))