Python综合练习之图表

文章目录

  • 文件目录如下
  • 图标效果
    • timeline_bar_with_graphic.html
    • table_base.html
  • articles.json
  • articlesData.py
  • articlesEchartsEntity.py
  • articlesEntity.py

Python学习了约一个月的时间,这是一篇综合练习的文章。主要做的内容是通过封装对象、实现抽象方法生成统计图、数据表格的功能。

文件目录如下

articles/__init__.pyarticles.jsonarticlesData.pyarticlesEchartsEntity.pyarticlesEntity.pytable_base.htmltimeline_bar_with_graphic.html

图标效果

timeline_bar_with_graphic.html

在这里插入图片描述

table_base.html

在这里插入图片描述

articles.json

是我的csdn文章的标题、得分、阅读量的数据

[{"title": "实战之简单OOM","url": "https://blog.csdn.net/qq_35716085/article/details/134413400","viewCount": 14,"score": 21},{"title": "使用jenkins持续集成springboot项目(四、nginx域名映射)","url": "https://blog.csdn.net/qq_35716085/article/details/132979875","viewCount": 47,"score": 24},{"title": "数据库存储引擎","url": "https://blog.csdn.net/qq_35716085/article/details/131707806","viewCount": 20,"score": 24},{"title": "后端开发面试题","url": "https://blog.csdn.net/qq_35716085/article/details/131955660","viewCount": 318,"score": 26},{"title": "Mysql锁","url": "https://blog.csdn.net/qq_35716085/article/details/131723792","viewCount": 25,"score": 29},{"title": "HashMap详解","url": "https://blog.csdn.net/qq_35716085/article/details/131554332","viewCount": 34,"score": 29},{"title": "Java多线程之线程状态","url": "https://blog.csdn.net/qq_35716085/article/details/131795708","viewCount": 29,"score": 34},{"title": "Java多线程之interrupt","url": "https://blog.csdn.net/qq_35716085/article/details/134310943","viewCount": 15,"score": 39},{"title": "SpringBoot集成ElasticSearch(依赖不同,业务代码与JPA方式也不同)","url": "https://blog.csdn.net/qq_35716085/article/details/133940678","viewCount": 44,"score": 41},{"title": "blast安装及简单使用","url": "https://blog.csdn.net/qq_35716085/article/details/135109803","viewCount": 497,"score": 44},{"title": "Python基础(三、探索布尔型、if-else语句、while循环和continue语句)","url": "https://blog.csdn.net/qq_35716085/article/details/134884680","viewCount": 178,"score": 46},{"title": "Mysql执行计划","url": "https://blog.csdn.net/qq_35716085/article/details/131709675","viewCount": 22,"score": 47},{"title": "Mysql隔离级别","url": "https://blog.csdn.net/qq_35716085/article/details/131697649","viewCount": 34,"score": 47},{"title": "Python基础(四、探索迷宫游戏)","url": "https://blog.csdn.net/qq_35716085/article/details/134906292","viewCount": 391,"score": 51},{"title": "使用jenkins持续集成springboot项目(二、Jenkins任务配置)","url": "https://blog.csdn.net/qq_35716085/article/details/132977536","viewCount": 50,"score": 51},{"title": "使用jenkins持续集成springboot项目(三、上服务器)","url": "https://blog.csdn.net/qq_35716085/article/details/132978301","viewCount": 20,"score": 52},{"title": "Python基础( 七、休闲大富翁游戏)","url": "https://blog.csdn.net/qq_35716085/article/details/135000098","viewCount": 589,"score": 54},{"title": "docker学习(四、修改容器创建新的镜像推送到云上)","url": "https://blog.csdn.net/qq_35716085/article/details/134777644","viewCount": 109,"score": 54},{"title": "docker学习(十七、Dockerfile之NodeJs示例)","url": "https://blog.csdn.net/qq_35716085/article/details/135151286","viewCount": 338,"score": 56},{"title": "docker学习(八、mysql8.2主从复制遇到的问题)","url": "https://blog.csdn.net/qq_35716085/article/details/134871764","viewCount": 983,"score": 56},{"title": "Springboot集成ElasticSearch+JPA","url": "https://blog.csdn.net/qq_35716085/article/details/133878232","viewCount": 43,"score": 56},{"title": "Python基础(九、重要的全局变量)","url": "https://blog.csdn.net/qq_35716085/article/details/135194814","viewCount": 401,"score": 57},{"title": "logstash同步mysql数据到es(一、es模板问题,请求返回400)","url": "https://blog.csdn.net/qq_35716085/article/details/134944124","viewCount": 321,"score": 57},{"title": "Python基础(十三、序列)","url": "https://blog.csdn.net/qq_35716085/article/details/135344702","viewCount": 249,"score": 61},{"title": "docker学习(十六、Dockerfile之Java示例)","url": "https://blog.csdn.net/qq_35716085/article/details/135151045","viewCount": 373,"score": 61},{"title": "Python基础(缩进:让代码更美观、更清晰)","url": "https://blog.csdn.net/qq_35716085/article/details/134993750","viewCount": 10,"score": 62},{"title": "服务启动时报错failed: Connection refused: connect","url": "https://blog.csdn.net/qq_35716085/article/details/135057342","viewCount": 425,"score": 64},{"title": "docker学习(十五、Dockerfile之python示例)","url": "https://blog.csdn.net/qq_35716085/article/details/135150935","viewCount": 537,"score": 65},{"title": "docker学习(三、常用命令,超实用)","url": "https://blog.csdn.net/qq_35716085/article/details/134711071","viewCount": 286,"score": 65},{"title": "使用jenkins持续集成springboot项目(一、项目打包坑集)","url": "https://blog.csdn.net/qq_35716085/article/details/132974806","viewCount": 58,"score": 65},{"title": "Java多线程之sleep、yield、join","url": "https://blog.csdn.net/qq_35716085/article/details/131787451","viewCount": 98,"score": 65},{"title": "docker重量级容器预警监控系统CIG","url": "https://blog.csdn.net/qq_35716085/article/details/135289219","viewCount": 405,"score": 69},{"title": "Python基础(十一、数据容器之元组Tuple)","url": "https://blog.csdn.net/qq_35716085/article/details/135222876","viewCount": 474,"score": 71},{"title": "docker学习(十、搭建redis集群,三主三从)","url": "https://blog.csdn.net/qq_35716085/article/details/135113131","viewCount": 503,"score": 71},{"title": "docker学习(二十、network使用示例host、none)","url": "https://blog.csdn.net/qq_35716085/article/details/135215618","viewCount": 658,"score": 72},{"title": "docker学习(十二、Redis主从容错迁移)","url": "https://blog.csdn.net/qq_35716085/article/details/135124607","viewCount": 583,"score": 72},{"title": "docker学习(六、容器卷)","url": "https://blog.csdn.net/qq_35716085/article/details/134825570","viewCount": 440,"score": 72},{"title": "springboot跨域问题,解决方法","url": "https://blog.csdn.net/qq_35716085/article/details/135108526","viewCount": 385,"score": 75},{"title": "Python基础(八、random模块探秘)","url": "https://blog.csdn.net/qq_35716085/article/details/135022724","viewCount": 431,"score": 76},{"title": "Dify.ai 10分钟带你体验Embedding对话应用","url": "https://blog.csdn.net/qq_35716085/article/details/134809112","viewCount": 919,"score": 79},{"title": "Mysql优化","url": "https://blog.csdn.net/qq_35716085/article/details/131720803","viewCount": 22,"score": 79},{"title": "docker学习(十一、Redis集群存储数据方式)","url": "https://blog.csdn.net/qq_35716085/article/details/135114324","viewCount": 535,"score": 80},{"title": "轻松学会Elasticsearch+kibana","url": "https://blog.csdn.net/qq_35716085/article/details/134976541","viewCount": 175,"score": 80},{"title": "Java多线程之并发特性","url": "https://blog.csdn.net/qq_35716085/article/details/131761923","viewCount": 31,"score": 80},{"title": "Python基础(十五、数据容器之字典Dict)","url": "https://blog.csdn.net/qq_35716085/article/details/135275642","viewCount": 142,"score": 81},{"title": "docker-compose启动项目时报错Version in “./docker-compose.yml“ is unsupported.","url": "https://blog.csdn.net/qq_35716085/article/details/135065241","viewCount": 378,"score": 81},{"title": "logstash同步mysql数据到es(二、jdbc_driver_library问题)","url": "https://blog.csdn.net/qq_35716085/article/details/134944439","viewCount": 303,"score": 81},{"title": "Python基础(一、安装环境及入门)","url": "https://blog.csdn.net/qq_35716085/article/details/134877749","viewCount": 307,"score": 82},{"title": "SpringBoot集成Eureka","url": "https://blog.csdn.net/qq_35716085/article/details/133941164","viewCount": 87,"score": 82},{"title": "docker学习(一、docker与VM对比)","url": "https://blog.csdn.net/qq_35716085/article/details/134732935","viewCount": 340,"score": 83},{"title": "Python基础(十四、数据容器之集合Set)","url": "https://blog.csdn.net/qq_35716085/article/details/135222946","viewCount": 473,"score": 84},{"title": "docker学习(二十一、network使用示例container、自定义)","url": "https://blog.csdn.net/qq_35716085/article/details/135218009","viewCount": 990,"score": 84},{"title": "docker学习(十九、network使用示例bridge)","url": "https://blog.csdn.net/qq_35716085/article/details/135197980","viewCount": 718,"score": 84},{"title": "Mysql事务","url": "https://blog.csdn.net/qq_35716085/article/details/131681556","viewCount": 54,"score": 84},{"title": "nginx 一、安装与conf浅析","url": "https://blog.csdn.net/qq_35716085/article/details/135337375","viewCount": 250,"score": 85},{"title": "docker学习(五、部署本地私有仓库)","url": "https://blog.csdn.net/qq_35716085/article/details/134800765","viewCount": 928,"score": 85},{"title": "服务启动时报错Communications link failure","url": "https://blog.csdn.net/qq_35716085/article/details/135057149","viewCount": 213,"score": 86},{"title": "实战之shardingjdbc引入报错Cannot invoke “Object.toString()“ because the return value of “java.util.Map.get(","url": "https://blog.csdn.net/qq_35716085/article/details/134790326","viewCount": 745,"score": 88},{"title": "docker学习(二、安装docker)","url": "https://blog.csdn.net/qq_35716085/article/details/134733341","viewCount": 730,"score": 88},{"title": "docker学习——汇总版","url": "https://blog.csdn.net/qq_35716085/article/details/135293661","viewCount": 731,"score": 89},{"title": "docker学习(十四、Dockerfile基础)","url": "https://blog.csdn.net/qq_35716085/article/details/135131649","viewCount": 947,"score": 89},{"title": "docker学习(十三、Redis主从扩容、缩容)","url": "https://blog.csdn.net/qq_35716085/article/details/135125327","viewCount": 2112,"score": 89},{"title": "logstash同步mysql数据到es(三、es模板问题)","url": "https://blog.csdn.net/qq_35716085/article/details/134945940","viewCount": 98,"score": 89},{"title": "springboot+shardingjdbc(只分表、不分库)","url": "https://blog.csdn.net/qq_35716085/article/details/134788951","viewCount": 436,"score": 89},{"title": "Redis设计与实现(阅读笔记、二)","url": "https://blog.csdn.net/qq_35716085/article/details/134670760","viewCount": 341,"score": 89},{"title": "Redis设计与实现(阅读笔记、一)","url": "https://blog.csdn.net/qq_35716085/article/details/134312572","viewCount": 312,"score": 89},{"title": "docker轻量级可视化工具Portainer","url": "https://blog.csdn.net/qq_35716085/article/details/135268224","viewCount": 874,"score": 90},{"title": "Python基础(十、数据容器之列表List)","url": "https://blog.csdn.net/qq_35716085/article/details/135220636","viewCount": 919,"score": 90},{"title": "Mysql索引","url": "https://blog.csdn.net/qq_35716085/article/details/131657505","viewCount": 75,"score": 90},{"title": "Python基础(十二、数据容器之字符串)","url": "https://blog.csdn.net/qq_35716085/article/details/135222922","viewCount": 1605,"score": 91},{"title": "Python基础(五、掌握for循环、range、break和continue用法,猜数游戏)","url": "https://blog.csdn.net/qq_35716085/article/details/134993056","viewCount": 243,"score": 91},{"title": "Python基础(八、函数的妙用,猫捉老鼠游戏)","url": "https://blog.csdn.net/qq_35716085/article/details/135158407","viewCount": 842,"score": 92},{"title": "使用docker实现logstash同步mysql到es","url": "https://blog.csdn.net/qq_35716085/article/details/134946153","viewCount": 377,"score": 92},{"title": "Python基础(二、必备知识,不用背,用用就会了~)","url": "https://blog.csdn.net/qq_35716085/article/details/134883841","viewCount": 427,"score": 92},{"title": "docker学习(七、搭建mysql8.2主从)","url": "https://blog.csdn.net/qq_35716085/article/details/134854670","viewCount": 1093,"score": 92},{"title": "docker学习(二十二、终篇,docker-compose)","url": "https://blog.csdn.net/qq_35716085/article/details/135263672","viewCount": 973,"score": 93},{"title": "docker学习(九、分布式存储亿级数据知识)","url": "https://blog.csdn.net/qq_35716085/article/details/135011956","viewCount": 974,"score": 93},{"title": "Java多线程之volatile","url": "https://blog.csdn.net/qq_35716085/article/details/131806551","viewCount": 91,"score": 93},{"title": "Python基础(六、掌握if、while用法)","url": "https://blog.csdn.net/qq_35716085/article/details/134994680","viewCount": 27,"score": 94},{"title": "Spring IOC 实现原理","url": "https://blog.csdn.net/qq_35716085/article/details/132427790","viewCount": 45,"score": 94},{"title": "docker学习(十八、network介绍)","url": "https://blog.csdn.net/qq_35716085/article/details/135196020","viewCount": 1194,"score": 95},{"title": "Java多线程之synchronized","url": "https://blog.csdn.net/qq_35716085/article/details/131825116","viewCount": 456,"score": 95}
]

articlesData.py

这个模块相当于我要对外开放的接口汇总,其中包含了:

  • init:构造函数
  • time_bar:生成统计图的对外接口,最后会给返回统计图的位置,浏览器打开html即可看到统计图
  • table_file:生成表格的对外接口,最后会给返回表格的位置,浏览器打开html即可看到表格
  • __read_file:读取json文件的私有方法
  • __format_file_data:解析json文件数据,提供给表格用
  • __format_time_bar_data:解析json文件数据,提供给统计图用
import jsonimport articlesEntity
from articles import articlesEchartsEntityclass OpenFile:def __init__(self, path):self.path = path# 获取数据中标题、数量、分数def time_bar(self):if None == self.path:return "路径不能为空"json_data = self.__read_file()data_list, title_list, count_dict, score_dict = self.__format_time_bar_data(json_data)path = articlesEchartsEntity.ArticlesEcharts().time_bar(title_list, count_dict, score_dict)return print(f"已生成<a href='{path}'>超全功能统计图</a>")# 解析文件,获取数据def table_file(self):if None == self.path:return "路径不能为空"json_data = self.__read_file()data_list = self.__format_file_data(json_data)path = articlesEntity.Articles().articles_table(data_list)return print(f"已生成<a href='{path}'>表格</a>")# 读取文件def __read_file(self):with open(self.path, "r") as file:json_data: list = json.loads(file.read())return json_data# 解析全部数据def __format_file_data(self, json_data):data_list = []for data in json_data:articles = articlesEntity.Articles(data["title"], data["url"], data["viewCount"],data["score"])data_list.append(articles)return data_list# 解析折线图数据def __format_time_bar_data(self, json_data):data_list = []title_list = []count_dict = {}score_dict = {}count_list = []score_list = []# 计数器count = 1# 月份month = 0for data in json_data:articlesEcharts = articlesEchartsEntity.ArticlesEcharts(data["title"], data["viewCount"],data["score"])data_list.append(articlesEcharts)title_list.append(data["title"])if count <= 8:count_list.append(data["viewCount"])score_list.append(data["score"])count += 1else:month += 1count_dict[month] = count_listscore_dict[month] = score_listcount_list = []score_list = []count = 1return data_list, title_list[:8], count_dict, score_dictif __name__ == "__main__":openFile = OpenFile("D:/test/demo/articles/articles.json")print(openFile.table_file())print(openFile.time_bar())

articlesEchartsEntity.py

在这个文件中封装了articlesEchartsEntity对象,包含:

  • EchartsData:抽象类,用于写支持的统计图
    • time_bar:支持时间柱状图
  • ArticlesEcharts:实现抽象类
    • init:构造函数
    • time_bar:实现抽象方法,生成统计图
from articles.articlesEntity import Articles
from pyecharts import options as opts
from pyecharts.charts import Bar, Timeline
from pyecharts.commons.utils import JsCode
from abc import ABC, abstractmethodclass EchartsData(ABC):@abstractmethoddef time_bar(self, *args):passclass ArticlesEcharts(Articles, EchartsData):def __init__(self, title=None, viewCount=None, score=None):super().__init__(title, viewCount, score)if title is not None:self.title = titleif viewCount is not None:self.viewCount = viewCountif score is not None:self.score = scoredef time_bar(self, x, score_y, count_y):tl = Timeline()for i in range(1, 10):bar = (Bar().add_xaxis(x).add_yaxis("阅读量", count_y[i]).add_yaxis("分数", score_y[i]).set_global_opts(title_opts=opts.TitleOpts("文章2023年 - With Graphic 组件"),graphic_opts=[opts.GraphicGroup(graphic_item=opts.GraphicItem(rotation=JsCode("Math.PI / 4"),bounding="raw",right=100,bottom=110,z=100,),children=[opts.GraphicRect(graphic_item=opts.GraphicItem(left="center", top="center", z=100),graphic_shape_opts=opts.GraphicShapeOpts(width=400, height=50),graphic_basicstyle_opts=opts.GraphicBasicStyleOpts(fill="rgba(0,0,0,0.3)"),),opts.GraphicText(graphic_item=opts.GraphicItem(left="center", top="center", z=100),graphic_textstyle_opts=opts.GraphicTextStyleOpts(text="文章{}月".format(i),font="bold 26px Microsoft YaHei",graphic_basicstyle_opts=opts.GraphicBasicStyleOpts(fill="#fff"),),),],)],))tl.add(bar, "{}月".format(i))path = "D:/test/demo/articles/timeline_bar_with_graphic.html"tl.render(path)return path

articlesEntity.py

这是文章对象,其中包含的函数:

  • init:构造函数
  • str:魔法函数,输出字符串
  • articles_table:生成表格的方法
  • __format_list:格式化数据,提供给表格用,私有方法
from pyecharts.components import Table
from pyecharts.options import ComponentTitleOptsclass Articles:def __init__(self, title=None, url=None, viewCount=None, score=None):if title is not None:self.title = titleif url is not None:self.url = urlif viewCount is not None:self.viewCount = viewCountif score is not None:self.score = scoredef __str__(self):print(f"<a href='{self.url}'>{self.title}</a>可通过链接查看详细内容~")def articles_table(self, data_list):header_list = ["标题", "统计分数", "统计阅读数","地址"]table = Table()rows_list_list = self.__format_list(data_list)table.add(header_list, rows_list_list)table.set_global_opts(title_opts=ComponentTitleOpts(title="Table-文章数据统计"))path = "D:/test/demo/articles/table_base.html"table.render("table_base.html")return pathdef __format_list(self, data_list):rows_list_list = []for articles in data_list:rows_list = []rows_list.append(articles.title)rows_list.append(articles.score)rows_list.append(articles.viewCount)rows_list.append(articles.url)rows_list_list.append(rows_list)return rows_list_list

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/623750.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

不可预测的市场中,为何有人持续胜出?

为什么经济学家和证券分析师难以预测经济或股价走势&#xff0c;而少数投资大师却能几十年持续复利&#xff1f;这两个问题看似矛盾&#xff0c;既然无法预测&#xff0c;为何又能产生确定性的赚钱结果呢&#xff1f; 有人认为这是因为幸存者偏差。然而&#xff0c;三十年以上连…

优优嗨聚集团:债务逾期,如何应对与解决?

在现代社会&#xff0c;债务问题已成为越来越多人面临的难题。债务逾期不仅会给个人带来巨大的经济压力&#xff0c;还会影响个人信用记录&#xff0c;甚至可能引发法律纠纷。那么&#xff0c;当债务逾期时&#xff0c;我们应该如何应对与解决呢&#xff1f; 一、了解债务情况 …

C# ObjectArx 绘制表格并设置单元格合并

第一行默认是标题&#xff0c;可设置行【RowType】进行设置类型 Document doc Application.DocumentManager.MdiActiveDocument;using (Transaction tr doc.TransactionManager.StartOpenCloseTransaction()){BlockTable bt tr.GetObject(doc.Database.BlockTableId, OpenMo…

GZ075 云计算应用赛题第9套

2023年全国职业院校技能大赛&#xff08;高职组&#xff09; “云计算应用”赛项赛卷9 某企业根据自身业务需求&#xff0c;实施数字化转型&#xff0c;规划和建设数字化平台&#xff0c;平台聚焦“DevOps开发运维一体化”和“数据驱动产品开发”&#xff0c;拟采用开源OpenSt…

导轨式信号隔离变送器比例阀门线性驱动器4-20mA/0-5V/0-10V转0-165mA/0-80mA/0-1A/0-2A/0-4A

主要特性 精度、线性度误差等级&#xff1a; 0.1、0.2、0.5 级4-20mA/0-5V/0-10V 等标准信号输入0~100mA/0~500mA/0~1A/0-5A 等电流信号输出0~1V(max 2A)/0~10V/0-24V(max 5A) 等电压信号输出信号输入/信号输出 3000VDC 隔离辅助电源&#xff1a;12V、15V 或 24V 直流单电源供…

【微服务】日志搜集elasticsearch+kibana+filebeat(单机)

日志搜集eskibanafilebeat&#xff08;单机&#xff09; 日志直接输出到es中&#xff0c;适用于日志量小的项目 基于7.17.16版本 主要配置在于filebeat&#xff0c; es kibana配置改动不大 环境部署 es kibana单机环境部署 略 解压即可 常见报错&#xff0c;百度即可。 记录…

修改csdn的字体大小颜色

修改csdn的字体大小颜色 修改csdn的字体大小颜色 修改csdn的字体大小颜色一、设置字体与颜色格式二、修改字体格式三、修改字体颜色 一、设置字体与颜色格式 <font face"华文行楷" colorred size5>本字体是华文行楷&#xff0c;红色&#xff0c;5号大小</fo…

怎样获取power shell 的全部可用命令?2/5(篇幅有点长,分成5份)

在power shell 窗口中&#xff0c;有一个获取全部可用命令的命令&#xff1a;get-command&#xff0c;获取到的命令有1640多个&#xff0c;够学习了吧&#xff1f;那么&#xff0c;power shell 命令有哪些类别呢&#xff1f; PowerShell命令可以分为以下几类&#xff1a; Cmdl…

TS学习笔记二:基础类型及变量声明

本节介绍TypeScript中的基础类型及变量声明方式的说明。TypeScript支持与JavaScript几乎相同的数据类型&#xff0c;此外还提供了实用的枚举类型方便我们使用。基础类型包括&#xff1a;数字&#xff0c;字符串&#xff0c;结构体&#xff0c;布尔值等。 学习视频 TS学习笔记二…

java发送邮件(注:本章以163邮箱为例)

目录 前言 一邮件服务器与传输协议 二.发送邮件思路 2.1注册163邮箱: 2.2、打开邮箱服务获取授权码 三.代码实现邮件发送 3.1第三方jar包 3.2创建邮件工具类 3.3编写测试类 前言 电子邮件的应用非常广泛&#xff0c;例如在某网站注册了一个账户&#xff0c;自动发送一…

机器学习在什么场景下最常用-九五小庞

机器学习在多个场景中都有广泛的应用&#xff0c;下面是一些常见的应用场景&#xff1a; 自然语言处理&#xff08;NLP&#xff09;&#xff1a;如语音识别、自动翻译、情感分析、垃圾邮件过滤等。数据挖掘和分析&#xff1a;如市场分析、用户画像、推荐系统、欺诈检测等。智能…

你不得不知道的常用 Git 命令

最近在学习的时候发现 git 命令没有自己想象中那么简单&#xff0c;特此做一期 《 常用 Git 命令 》&#xff0c;不仅是给掘友分享&#xff0c;也能巩固自己学到的知识。 在此向大家推荐一个学习 git 指令的小游戏 Learn Git Branching&#xff0c;以通关的方式进行学习&#…

2024年【高处安装、维护、拆除】考试题及高处安装、维护、拆除模拟试题

题库来源&#xff1a;安全生产模拟考试一点通公众号小程序 高处安装、维护、拆除考试题是安全生产模拟考试一点通总题库中生成的一套高处安装、维护、拆除模拟试题&#xff0c;安全生产模拟考试一点通上高处安装、维护、拆除作业手机同步练习。2024年【高处安装、维护、拆除】…

电脑的任务栏怎么恢复到底下?简单的4个方法帮你解决!

“我在使用电脑的时候突然发现电脑底部的任务栏不见了&#xff0c;有什么方法可以将任务栏恢复到底下吗&#xff1f;快给我出出主意吧&#xff01;” 在使用电脑时&#xff0c;我们可能会发现电脑的任务栏跑到屏幕顶部或消失的情况。这不仅影响了我们的使用体验&#xff0c;还可…

如何使用左移方法优化性能测试

开发周期早期阶段的性能测试&#xff08;左移方法&#xff09;可以让产品提供更好的性能和更高的投资回报率。查看如何使用左移方法优化性能测试。 每一次冲刺都至关重要&#xff0c;并且做出的决策速度快如闪电。为了促进快速反馈过程&#xff0c;测试团队必须在很短的时间内…

JS逆向实战案例1——某房地产url动态生成

说明&#xff1a;仅供学习使用&#xff0c;请勿用于非法用途&#xff0c;若有侵权&#xff0c;请联系博主删除 作者&#xff1a;zhu6201976 一、 反爬分析 url&#xff1a;aHR0cHM6Ly9uZXdob3VzZS4wNTU3ZmRjLmNvbQ 该站点项目url通过点击JS生成&#xff0c;project_id与生成后…

mysql清空并重置自动递增初始值

需求&#xff1a;当上新项目时&#xff0c;测试环境数据库导出来的表id字段一般都有很大的初始递增值了&#xff0c;需要重置一下 先上代码&#xff1a; -- 查看当前自动递增值 SHOW CREATE TABLE table_name; -- 重建自动递增索引&#xff08;可选&#xff09; ALTER TABLE t…

Spring - 如何控制多个 AOP 切面执行顺序?

众所周知&#xff0c;Spring 声明式事务是基于 AOP 实现的&#xff0c;那么&#xff0c;如果我们在同一个方法自定义多个 AOP&#xff0c;我们如何指定他们的执行顺序呢&#xff1f; 三种解决方案 1、通过实现 org.springframework.core.Ordered 接口 Component Aspect S…

Vue-13、Vue绑定css样式

1、绑定css样式字符串写法&#xff0c;适用于&#xff1a;样式的类名不确定 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>绑定css样式</title><!--引入vue--><script type"tex…

上海市委网信办技术沙龙|美创科技分享数据流动下的安全应对

为有效提升上海市党政机关和重点单位的技术能力与水平&#xff0c;1月11日&#xff0c;上海市委网信办组织开展以“数据安全治理与合规流动经验分享”为主题的第三十二期网络安全技术沙龙。全市26家党政机关和重点单位相关网络安全技术人员参加此次活动。 美创科技作为上海市委…