Bug493-Fix

Bug493-GongKeCheng
dktea 2022-12-20 12:19:06 +08:00
parent 0962d95ce1
commit b9a6e4407e
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ def mainpage():
content = escape(request.form['content'])
f = WordFreq(content)
lst = f.get_freq()
for i in lst:
if '&' in i[0]:
i[0].replace('&','\'')
#此处由于找不到输出的所以对其输入的格式进行重新规范
# save history
d = load_freq_history(path_prefix + 'static/frequency/frequency.p')
lst_history = pickle_idea.dict2lst(d)