Compare commits

...

13 Commits

Author SHA1 Message Date
YAKUBU ABDULAI 8127ddcea5 Update 'app/pickle_idea2.py'
Update comment
2023-05-02 15:14:05 +08:00
YAKUBU ABDULAI f6c7928fc9 Delete 'app/pickle_idea.pyc'
runtime file deleted
2023-05-02 14:50:21 +08:00
YAKUBU ABDULAI 0ff73b2213 Delete 'app/Yaml.pyc'
runtime file deleted
2023-05-02 14:49:15 +08:00
YAKUBU ABDULAI c3e01b20ce Delete 'app/Article.pyc'
runtime file deleted
2023-05-02 14:48:40 +08:00
YAKUBU ABDULAI 8a900404e7 Delete 'app/WordFreq.pyc'
runtime file deleted.
2023-05-02 14:48:00 +08:00
YAKUBU ABDULAI 90d64ff447 Delete 'app/difficulty.pyc'
runtime file deleted.
2023-05-02 14:46:25 +08:00
YAKUBU ABDULAI 6b64eca9e3 Delete 'app/pickle_idea2.pyc'
delete runtime file.
2023-05-02 14:39:02 +08:00
YAKUBU ABDULAI 303a792c76 Delete 'app/wordfreqCMD.pyc'
delete runtime file.
2023-05-02 14:38:06 +08:00
YAKUBU ABDULAI b15df83df4 Delete 'app/UseSqlite.pyc'
deleting runtime files.
2023-05-02 14:36:36 +08:00
YAKUBU ABDULAI 4fc557aff3 Delete 'app/Login.pyc'
deleted run time files.
2023-05-02 14:35:14 +08:00
Benedict Gbalawoe cfa0329701 Merge branch 'Alpha' of http://121.4.94.30:3000/mrlan/EnglishPal into bug359-zhangkeli 2023-04-19 15:13:16 +08:00
Benedict Gbalawoe 36c100b1a8 Merge branch 'bug359-zhangkeli' of http://121.4.94.30:3000/mrlan/EnglishPal into bug359-zhangkeli 2023-04-19 14:54:08 +08:00
keli_Chuang 40c86b2050 Bug359 修改位置pickle_idea2.py line71 2022-06-05 22:00:43 +08:00
6 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# -*- coding: UTF-8 -*-
from WordFreq import WordFreq
from wordfreqCMD import youdao_link, sort_in_descending_order
from UseSqlite import InsertQuery, RecordQuery

View File

@ -1,3 +1,4 @@
# -*- coding: UTF-8 -*-
import hashlib
import string
from datetime import datetime, timedelta

View File

@ -1,3 +1,4 @@
# -*- coding: UTF-8 -*-
'''
Yaml.py
配置文件包括:

View File

@ -1,3 +1,4 @@
# -*- coding: UTF-8 -*-
###########################################################################
# Copyright 2019 (C) Hui Lan <hui.lan@cantab.net>
# Written permission must be obtained from the author for commercial uses.

View File

@ -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])) # This code sorts the values of the dictionary 'd' associated with the key 'k' and assigns the resulting sorted list to the key 'k' in the dictionary 'd2'. However, it does not remove duplicates from the original list, which means that it keeps track of all counts even when the same value is clicked multiple times in a row.
pickle.dump(d2, f)
f.close()

View File

@ -1,3 +1,4 @@
# -*- coding: UTF-8 -*-
###########################################################################
# Copyright 2019 (C) Hui Lan <hui.lan@cantab.net>
# Written permission must be obtained from the author for commercial uses.