中分词库  jieba

词云 wordcloud

import jieba
import wordcloud
f = open("新时代中国特色社会主义.txt", "r", encodint="utf-8")
t = f.read()
f.close()
ls = jieba.lcut(t)
txt = " ".join(ls)
w = wordcloud.WordCloud( font_path = "msyh.ttc", \
width = 1000, height = 700, background_color="white")
w.generate(txt)
w.to_file("wordcloud.png")

http://yciyun.com/

最新文章

  1. C#语法糖(Csharp Syntactic sugar)大汇总
  2. FPS
  3. 项目:BluetoothChat
  4. 第一部分:使用iReport制作报表的详细过程(Windows环境下)
  5. 收集oracle统计信息
  6. 小白也能用Git管理团队项目了:百度云同步+Git Extensions+Git Source Control Provider
  7. MYSQL批量插入数据库实现语句性能分析
  8. css+js+html基础知识总结
  9. [Angular 2] Generate and Render Angular 2 Template Elements in a Component
  10. Asp.Net微信登录-手机网站APP应用
  11. HeadFirst设计模式之RMI介绍
  12. Podfile 文件的编写
  13. js鼠标滑动图片显示隐藏效果
  14. 滚动到指定元素的id处+当元素出现在浏览器显示区域就会自动加载
  15. 两端对齐justify
  16. Lucene学习笔记1(V7.1)
  17. JSTL遇到的问题
  18. mvc,mvp.mvvm模型
  19. Python 编码风格指南
  20. mysql 百万级数据库优化方案

热门文章

  1. ubantu 安装 wget
  2. 正确生成浮点型的方法,解决sqlachemy Float浮点型的坑,生成float类型时,长度和精度均为0,导致查询不到结果!
  3. Spring Security(一):官网向导翻译
  4. Uncaught ReferenceError: layer is not defined
  5. 【Windows】+ windows下在某一文件夹下按“shift+鼠标右键”打开CMD窗口
  6. day96
  7. C#使用Json.Net遍历Json
  8. 分享一个公众号h5裂变吸粉源码工具
  9. 聊聊阿里社招面试,谈谈“野生”Java程序员学习的道路
  10. tomcat7 内存溢出 java.lang.OutOfMemoryError 处理方法