kpt

【cipingTotal】解决路径错误

... ... @@ -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)
... ... @@ -28,5 +28,3 @@ def main():
for i in range(100):
print(list_count[i],file=result)
 
\ No newline at end of file
if __name__ == '__main__':
print(main())
\ No newline at end of file
... ...