摘要: 词频统计文本:《三国演义》 底图: 代码: 1 import jieba 2 txt = open("D:/桌面/pytest/threekingdoms.txt","r",encoding = "utf-8").read() #打开文本 3 words = jieba.lcut(txt) #分词 阅读全文
posted @ 2020-04-06 18:13 玩的三立方 阅读(203) 评论(0) 推荐(0) 编辑