摘要: 运用jieba库统计词频,并对词频进行排序 import jieba txt = open("文章.txt","r",encoding='gbk',errors='replace').read() words = jieba.lcut(txt) counts = {} for word in wor 阅读全文
posted @ 2020-04-07 00:27 Jessie- 阅读(442) 评论(0) 推荐(0) 编辑