def
f
(list1):
list_one=
sorted
(list1)
list_two=list_one[
1
:-
1
]
s=
0
for
i
in
list_two:
s=s+i
return
s/
len
(list_two)
list_1=[]
n=
int
(
input
(
”
请输入整整数:
”
))
list_1.append(n)
while
n!=-
1
:
n =
int
(
input
(
”
请输入整整数:
”
))
list_1.append(n)
list_1.pop()
#
将最后输入的
-1
删除
print
(f(list_1))