map后注意list转换
while True:
try:
score=input().split(" ")
scores=list(map(int,score))
avg_score=(sum(scores)-max(scores)-min(scores))/(len(scores)-2)
print("{:.2f}".format(avg_score))
except:
break
map后注意list转换
while True:
try:
score=input().split(" ")
scores=list(map(int,score))
avg_score=(sum(scores)-max(scores)-min(scores))/(len(scores)-2)
print("{:.2f}".format(avg_score))
except:
break