marks=[[],[],[],[],[]]
names=["A","B","C","D","E","F"]
for i in range(len(names)):
print(f"六位评委为{i+1}位选手打{names[i]}分")
for j in range(6):
score=int(input(f"请{j+1}号评委为{i+1}号选手{names[i]}打分"))
marks[i].append(score)
print("最终得分",marks)
for i in range(len(names)):
marks[i].sort()
del marks[i][5]
del marks[i][0]
print(f"{i+1}号选手{name[i]}的有效得分是:",marks[i])
print(f"{i+1}号选手去掉最高最低分后为,",sum(maeks[i])/len(marks[i]))