摘要: 以下代码对鲁迅的《祝福》进行了词频统计: 1 import io 2 import jieba 3 txt = io.open("zhufu.txt", "r", encoding='utf-8').read() 4 words = jieba.lcut(txt) 5 counts = {} 6 f 阅读全文
posted @ 2020-04-15 10:54 litchi31 阅读(3395) 评论(4) 推荐(0)