|
|
|
@ -155,7 +155,7 @@ def count_show(show_data): |
|
|
|
show_dict[show['影片别名']] += 1 |
|
|
|
show_dict[show['影片别名']] += 1 |
|
|
|
else: |
|
|
|
else: |
|
|
|
show_dict[show['影片别名']] = 1 |
|
|
|
show_dict[show['影片别名']] = 1 |
|
|
|
show_dict = dict(sorted(show_dict.items(), key=lambda item: item[1], reverse=True)) |
|
|
|
show_dict = dict(sorted(show_dict.items(), key=lambda item: item[0], reverse=True)) |
|
|
|
show_count = [] |
|
|
|
show_count = [] |
|
|
|
for show, count in show_dict.items(): |
|
|
|
for show, count in show_dict.items(): |
|
|
|
show_count.append(f"{show}:{str(round(count / len(show_data) * 100, 2))}%,共排{str(count)}场") |
|
|
|
show_count.append(f"{show}:{str(round(count / len(show_data) * 100, 2))}%,共排{str(count)}场") |
|
|
|
|