forked from mrlan/EnglishPal
Compare commits
13 Commits
Bug546-Lix
...
bug359-zha
Author | SHA1 | Date |
---|---|---|
YAKUBU ABDULAI | 8127ddcea5 | |
YAKUBU ABDULAI | f6c7928fc9 | |
YAKUBU ABDULAI | 0ff73b2213 | |
YAKUBU ABDULAI | c3e01b20ce | |
YAKUBU ABDULAI | 8a900404e7 | |
YAKUBU ABDULAI | 90d64ff447 | |
YAKUBU ABDULAI | 6b64eca9e3 | |
YAKUBU ABDULAI | 303a792c76 | |
YAKUBU ABDULAI | b15df83df4 | |
YAKUBU ABDULAI | 4fc557aff3 | |
Benedict Gbalawoe | cfa0329701 | |
Benedict Gbalawoe | 36c100b1a8 | |
keli_Chuang | 40c86b2050 |
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- coding: UTF-8 -*-
|
||||||
from WordFreq import WordFreq
|
from WordFreq import WordFreq
|
||||||
from wordfreqCMD import youdao_link, sort_in_descending_order
|
from wordfreqCMD import youdao_link, sort_in_descending_order
|
||||||
from UseSqlite import InsertQuery, RecordQuery
|
from UseSqlite import InsertQuery, RecordQuery
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- coding: UTF-8 -*-
|
||||||
import hashlib
|
import hashlib
|
||||||
import string
|
import string
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- coding: UTF-8 -*-
|
||||||
'''
|
'''
|
||||||
Yaml.py
|
Yaml.py
|
||||||
配置文件包括:
|
配置文件包括:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- coding: UTF-8 -*-
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Copyright 2019 (C) Hui Lan <hui.lan@cantab.net>
|
# Copyright 2019 (C) Hui Lan <hui.lan@cantab.net>
|
||||||
# Written permission must be obtained from the author for commercial uses.
|
# Written permission must be obtained from the author for commercial uses.
|
||||||
|
|
|
@ -68,7 +68,7 @@ def save_frequency_to_pickle(d, pickle_fname):
|
||||||
d2 = {}
|
d2 = {}
|
||||||
for k in d:
|
for k in d:
|
||||||
if not k in exclusion_lst and not k.isnumeric() and not len(k) < 2:
|
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)
|
pickle.dump(d2, f)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- coding: UTF-8 -*-
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Copyright 2019 (C) Hui Lan <hui.lan@cantab.net>
|
# Copyright 2019 (C) Hui Lan <hui.lan@cantab.net>
|
||||||
# Written permission must be obtained from the author for commercial uses.
|
# Written permission must be obtained from the author for commercial uses.
|
||||||
|
|
Loading…
Reference in New Issue