中文词频统计
摘要:
import jieba txt = open('小说.txt','r',encoding='utf-8').read() for i in ',。、:;“” \u3000': txt = txt.replace(i,'') words = list(jieba.cut(txt)) dic = {} keys = set(words) for o in keys: if l... 阅读全文
posted @ 2017-09-29 09:50 021杨光哈哈哈 阅读(91) 评论(0) 推荐(0) 编辑