From 58d7349afe69c5934754cb7a5145b33382326c37 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Tue, 25 Apr 2023 08:40:26 +0800 Subject: [PATCH] Change from bug359-zhangkeli --- app/pickle_idea2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pickle_idea2.py b/app/pickle_idea2.py index 4055fc4..0da55bc 100644 --- a/app/pickle_idea2.py +++ b/app/pickle_idea2.py @@ -68,7 +68,7 @@ def save_frequency_to_pickle(d, pickle_fname): d2 = {} for k in d: if not k in exclusion_lst and not k.isnumeric() and not len(k) < 2: - d2[k] = list(sorted(set(d[k]))) + d2[k] = list(sorted(d[k])) # 原先这里是d2[k] = list(sorted(set(d[k]))) pickle.dump(d2, f) f.close()