当前位置: 首页 > news >正文

网站建设工作进度哪有恶意点击软件买的

网站建设工作进度,哪有恶意点击软件买的,甘肃省庆阳市合水县疫情最新消息,网站开发哪里培训好效果图 步骤 (1)依赖 python 库 pip install jieba wordcloud数据 概览 $ head -n 5 input.txt 中国软件技术发展洞察和趋势预测报告 2023 QCon 大会内容策划思路 FinOps:从概念到落地 开源芯片的发展现状、机遇和未来 乐观者前行&#xff0…

效果图

词云

步骤

(1)依赖

  • python 库

    pip install jieba wordcloud
    
  • 数据

    • 概览
    $ head -n 5 input.txt
    中国软件技术发展洞察和趋势预测报告 2023
    QCon 大会内容策划思路
    FinOps:从概念到落地
    开源芯片的发展现状、机遇和未来
    乐观者前行,Infra 出海的挑战与机遇
    
    • 来源:https://qcon.infoq.cn/202302/beijing/schedule
    • 提取方法:使用 Chrome 的 XPath 在控制台 Console 提取
      $x('//tbody/tr/td/a/text()').map(x => x.data)
      

    在这里插入图片描述

(2)源码

import jieba
import wordcloud# 对文本进行分词
# top_num 取前 top_num
# exclude_words 无关词语列表
# user_words 自定义分词
def cut_word(input_path, out_path, top_num=30, exclude_words=[], user_words=[]):file = open(input_path, 'r', encoding='utf-8')txt = file.read()if len(user_words) > 0:for user_word in user_words:jieba.add_word(user_word)words = jieba.lcut(txt)# 对词频进行统计count = {}for word in words:if len(word) == 1:continueelse:count[word] = count.get(word, 0) + 1# 遍历字典的所有键,即所有 wordfor key in list(count.keys()):# 引入停用词if key in exclude_words:del count[key]lists = list(count.items())# 词频排序lists.sort(key=lambda x: x[1], reverse=True)# 打印前 top_num 条词频for i in range(top_num):word, number = lists[i]print("关键字:{:-<5}频次:{}".format(word, number))# 词频写入with open(out_path, 'w', encoding='utf-8') as f:for i in range(top_num):word, number = lists[i]f.write('{}\t{}\n'.format(word, number))f.close()return out_path# 制作词云
def get_cloud(input_path, image_out_path):with open(input_path, 'r', encoding='utf-8') as f:text = f.read()wcloud = wordcloud.WordCloud(font_path=r'‪C:\Windows\Fonts\simhei.ttf',background_color='white',width=500,max_words=1000,height=400,margin=5).generate(text)# 指定词云文件路径wcloud.to_file(image_out_path)f.close()print("词云图片已保存")if __name__ == '__main__':cut_word('./input.txt', out_path='./wordcloud.txt', top_num=200, exclude_words=['实践', '技术', '基于', '应用', '建设', '实战', '探索', '系统', '体系'], user_words=['云原生', '研发效能', '分布式', '微服务'])get_cloud(input_path='./wordcloud.txt', image_out_path='./qcon.png')

参考

  • https://www.cnblogs.com/yangyezhuang/p/16896980.html
  • https://blog.csdn.net/zhangzeyuaaa/article/details/122192065
  • https://baijiahao.baidu.com/s?id=1702691581630693235
http://www.dt0577.cn/news/18787.html

相关文章:

  • 沈阳做网站优化的公司哪家好seo技术培训
  • 网站分站如何做陕西网络推广介绍
  • vps wordpress cpu占用过高郑州seo外包顾问热狗
  • 做党建需要关注网站seo推广有哪些
  • 聊城网站建设lcbywlseo优化排名易下拉用法
  • 门户网站是如何做引流的百度推广后台登录首页
  • 石家庄专业模板网站制作价格系统优化工具
  • 衢州建筑加固哪家好太原建站seo
  • 宽带动态ip如何做网站访问营销网站制作公司
  • wordpress分类显示图片百度搜索引擎关键词优化
  • 自己做的网站不满屏惠州seo关键词
  • 唐山自助建站模板搜索引擎推广培训
  • 辽宁城乡建设部网站首页肇庆网站制作软件
  • 图书购物网站开发总结青岛最新消息
  • 软件项目外包网优化营商环境个人心得
  • 做网站表格单边框标记公众号运营收费价格表
  • 网站开发多久完成亚马逊查关键词搜索量的工具
  • 网站页尾版权湖南正规seo公司
  • 深圳网站建设公司信息上海seo
  • dede做的网站弹广告潍坊网站建设平台
  • 广州做网站比较有名的公司广告公司图片
  • 做水印的网站电子商务专业就业方向
  • 海报设计模板网站郑州网站建设最便宜
  • 做的好的h游戏下载网站南京seo培训
  • 嘉定西安网站建设平台优化是什么意思
  • 公司网站手机版google推广seo
  • 网站中转页优化大师win10
  • 网站制作帐户设置宁波seo智能优化
  • 提交网站地图太原网站建设方案优化
  • 手表排行榜搜索引擎优化的主要特征