scores = (59,89,65,78,100)
scoreli = list(scores)
scoreli.sort()
print(scoreli)
scores = sorted(scores)
print(scores)
minscore,*middlescore,maxscore = scores
print(minscore)
print(middlescore)
print(maxscore)
print('最终成绩为: %.2f' %(sum(middlescore)/len(middlescore)))
元组的应用场景
最新推荐文章于 2022-11-18 10:22:59 发布