摘要: # -*- coding:utf-8 -*- # @Author : chenfei # @time : 2020/10/23 15:30 # @File : 读取word统计词频输出excel.PY # @Software : PyCharm import docx import jieba fr 阅读全文
posted @ 2020-10-23 16:01 前进小蜗牛 阅读(791) 评论(0) 推荐(0) 编辑
摘要: -- coding:utf-8 -- import jieba 读取文件 f=open(r'E:\Chrome_download\tieba.txt',encoding='utf-8') txt =f.read() print(txt) 分词 words = jieba.lcut(txt) stri 阅读全文
posted @ 2020-10-23 13:43 前进小蜗牛 阅读(1406) 评论(0) 推荐(0) 编辑