diff --git a/app/main.py b/app/main.py index e311bb0..f293398 100644 --- a/app/main.py +++ b/app/main.py @@ -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)