scores = [9.8,9.5,9.9,9.3,8.9,9.5,9.6,9.3,9.4,9.6]
#最大值
max_score = max(scores)
#最小值
min_score = min(scores)
par_num = 0-max_score-min_score
for i in scores:
par_num+=i
par_num = par_num/(len(scores)-2)
print(par_num)
scores = [9.8,9.5,9.9,9.3,8.9,9.5,9.6,9.3,9.4,9.6]
max_score = max(scores)
min_score = min(scores)
length = len(scores)
sum1 = sum(scores)
n =scores.count(9.6)
print('最大值为%s'%max_score)
print('最小值为%s'%min_score)
print('列表长度为%s'%length)
print('列表所有元素和为%s'%sum1)
print('9.6出现的次数为%s'%n)
max(列表名)返回列表最大值
min(列表名)返回列表最小值
sum(列表)返回所有元素之和
len(列表)返回列表长度
列表.count(数据)返回改数据出现次数