From 431c706e57838b7f10398afd5213d9cb729d3e3b Mon Sep 17 00:00:00 2001 From: rogersun Date: Wed, 17 Jun 2026 16:51:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=92=E7=89=87=E5=8D=A0?= =?UTF-8?q?=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai/utils/basic_func.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/utils/basic_func.py b/ai/utils/basic_func.py index 8374a72..871d35c 100644 --- a/ai/utils/basic_func.py +++ b/ai/utils/basic_func.py @@ -153,5 +153,5 @@ def count_show(show_data): show_dict = dict(sorted(show_dict.items(), key=lambda item: item[1], reverse=True)) show_count = [] for show, count in show_dict.items(): - show_count.append(show + ':' + str(round(count/len(show_data) * 100, 2))+'%') + show_count.append(f"{show}:{str(round(count / len(show_data) * 100, 2))}%,共排{str(count)}场") return '\n'.join(show_count) \ No newline at end of file