热门好课推荐
猜你喜欢
相关培训 相关博客
  • #词云importjiebaimportwordcloud#fromscipy.miscimportimread#mask=imread("图片源文件名")#添加背景为白色的图形做为词云背景f=open("D:\\AgradePython\\房思琪的诗性.txt","r&q
    2018-10-09 16:13:45
    阅读量:184
    评论:0
  • importjiebaimportwordcloudfromscipy.miscimportimreadmask=imread("1.jpg")#母图f=open('1.txt','r',encoding="utf-8")t=f.read()f.close()ls=jieba.lcut_for_search(t)txt="".join(ls)...
    2019-06-15 22:33:53
    阅读量:15
    评论:0
  • importrequestsimportjieba  #结巴分词fromwordcloudimportWordCloudimportmatplotlib.pyplotaspltfromscipy.miscimportimreadrespon=requests.get('https://www.d1xz.net/yunshi/today/Virgo/')print(type...
    2018-07-06 13:28:57
    阅读量:103
    评论:0
  • 1#!/usr/bin/envpython2#-*-coding:utf-8-*-3importmatplotlib.pyplotasplt4fromwordcloudimportWordCloud,STOPWORDS,ImageColorGenerator5importjieba6fromscipy.miscimport...
    2017-04-18 21:59:00
    阅读量:5
    评论:0
  • #-*-coding:utf-8-*-""""Maskedwordcloud================Usingamaskyoucangeneratewordcloudsinarbitraryshapes."""fromosimportpathfromPILimportImageimportnumpyasnpimportma
    2017-02-16 18:35:11
    阅读量:590
    评论:0
  • GitHub上有一个Awesome-XXX系列的资源整理,资源非常丰富,涉及面非常广。awesome-python是vinta发起维护的Python资源列表,内容包括:Web框架、网络爬虫、网络内容提取、模板引擎、数据库、数据可视化、图片处理、文本处理、自然语言处理、机器学习、日志、代码分析等。版权是 https://github.com/jobbole/awesome-py...
    2019-05-14 19:24:41
    阅读量:54
    评论:0
  • http://www.runoob.com/python/python-tutorial.html转载于:https://www.cnblogs.com/MasterMonkInTemple/p/10455689.html
    2019-03-01 12:27:00
    阅读量:21
    评论:0
  • 1.参照北京理工大学mooc课程:python程序设计https://www.icourse163.org/learn/BIT-268001?tid=1002788003&from=study#/learn/content源代码为:importjiebaimportwordcloudfromscipy.miscimportimreadmask=imre...
    2019-03-05 16:52:27
    阅读量:65
    评论:0
  • 准备工作:1.下载Anaconda2.准备好制作词云的文本3.安装词云包pipinstallcoludword4.安装jieba切词包pipinstalljieba1.引入相关的库包:[python] viewplain copy#coding:utf-8  import jieba    #分词包  import numpy    #numpy计算包  import codecs ...
    2018-04-01 21:51:24
    阅读量:191
    评论:0
  • 生成你自己的词云#!/usr/bin/envpython3#-*-coding:utf-8-*-'''-author:starryj'''importjiebafromwordcloudimportWordCloud,STOPWORDS,ImageColorGeneratorimportmatplotlib.pyplotaspltfromPILimp
    2017-04-11 18:10:51
    阅读量:1384
    评论:0