摘要: # 导入依赖 import jieba def fun(): # 读取文本 file = open("D:\\yx.txt", "r", encoding='utf-8').read() # 使用精确模式对文本进行分词 words = jieba.lcut(file) # 通过键值对的形式存储词语及 阅读全文
posted @ 2021-12-09 20:47 学习中_1 阅读(53) 评论(0) 推荐(0) 编辑