摘要:
import jieba txt = open("D:\\三国演义.txt", "r", encoding='ANSI').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for wor 阅读全文
posted @ 2020-04-13 16:25
Hayhong123
阅读(586)
评论(0)
推荐(0)
2020年4月13日