import random
num = []
for i in range(0,10):
number = random.randint(0,100)
num.append(number)
print(num)
max_num = max(num)
min_num = min(num)
print(f"删除最大值{max_num}")
num.remove(max_num)
print(f"删除最小值{min_num}")
num.remove(min_num)
sum_num = sum(num)
print("接下来开始算成绩平均数:")
print(sum_num/10)