test_name = ("《Give up,hold on to me》", "《The private dishes of the husbands》",
"《My father-in-law will do martiaiarts》", "《North Canton still believe in love》",
"《Impossible task》", "《Sparrow》", "《East of dream Avenue》",
"《Theprodigal son of the new frontier town》",
"《Distant distance》", "《Music legend》")
test_score = (1.4, 1.343, 0.92, 0.862, 0.553, 0.411, 0.164, 0.259, 0.394, 0.562)
b = sorted(enumerate(test_score), reverse=True, key=lambda test_score:test_score[1])
count = [test_score[0] for test_score in b]
print("电视剧的收视率排行榜:")
for i in count:
print(f"{test_name[i]} 收视率:{test_score[i]}%")
python作业电视剧收视率排名
最新推荐文章于 2024-02-10 10:15:00 发布