From 3d9659c1b9fe37ac87f89772dff31aacdf081362 Mon Sep 17 00:00:00 2001 From: roger Date: Sun, 23 Apr 2023 09:34:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8B=AC=E5=8F=B7=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=A7=E8=A1=8C=E9=A1=BA=E5=BA=8F=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blue_forecast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blue_forecast.py b/blue_forecast.py index 4945925..3402358 100644 --- a/blue_forecast.py +++ b/blue_forecast.py @@ -51,7 +51,7 @@ def dict_sort(_dict, _key, _reverse=False): result_val_dict = {} for rv in result: result_val_dict[rv[0]] = rv[1] - + # print(result_val_dict) return result_val_dict @@ -59,6 +59,7 @@ def dict_rate(_dict): _sum = reduce((lambda x, y: x + y), _dict.values()) for k, v in _dict.items(): _dict[k] = str(round(v / _sum * 100, 2)) + '%' + # print(_dict) return _dict