首页
新闻
博问
专区
闪存
班级
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
讲道理
博客园
首页
新随笔
联系
订阅
管理
2017年9月25日
中文词频统计及词云制作
摘要: import jieba xxx=open("熊出没.txt","r",encoding='utf-8').read() words=jieba.lcut(xxx) counts={} for word in words: if len(word)==1: continue else: counts[word]=counts.get(word,0)...
阅读全文
posted @ 2017-09-25 18:47 讲道理
阅读(161)
评论(0)
推荐(0)
编辑