From c0385809ea45deb7dde2cf8d5fe76b65b794e861 Mon Sep 17 00:00:00 2001 From: kpt <2817151932@qq.com> Date: Fri, 5 Jul 2024 01:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90cipingTotal=E3=80=91=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/cipingTotal.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/cipingTotal.py b/utils/cipingTotal.py index 54931c3..99b3985 100644 --- a/utils/cipingTotal.py +++ b/utils/cipingTotal.py @@ -4,7 +4,7 @@ import re def main(): reader = open('./cutComments.txt','r',encoding='utf8') strs = reader.read() - result = open('cipingTotal.csv', 'w', encoding='utf8') + result = open('./utils/cipingTotal.csv', 'w', encoding='utf8') # 分词,去重,列表 word_list = jieba.cut(strs,cut_all=True) @@ -27,6 +27,4 @@ def main(): # return list_count for i in range(100): print(list_count[i],file=result) - -if __name__ == '__main__': - print(main()) \ No newline at end of file + \ No newline at end of file