![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 74
zxz634084743
这个作者很懒,什么都没留下…
展开
-
腾讯云数据库恢复方案对比
需求:需要每天8点之前把生产数据库3点之前的数据还原到预发布环境测试两种方案如下:1.根据时间节点或备份文件回档(克隆)出新实例编写脚本通过api定时创建:import datetime,timeimport jsonfrom tencentcloud.common import credentialfrom tencentcloud.common.profile.client_profile import ClientProfilefrom tencentcloud.commo原创 2021-10-12 18:31:32 · 308 阅读 · 0 评论 -
python echarts数据可视化
python echarts生成图表文档内容1.html转换成图片目前大概有两种方式,使用imgkit库或者selenium库1.1imgkit模块安装和使用pip install imgkit下载wkhtmltopdf工具包https://wkhtmltopdf.org/downloads.html按照系统版本下载对应的安装包安装options参数可参考官方文档https://wkhtmltopdf.org/usage/wkhtmltopdf.txtimport imgkitpath原创 2021-09-14 17:30:07 · 2945 阅读 · 0 评论 -
python apscheduler实践
需求来源:1.每天5点从数据库取出三个随机时间点2.在三个时间点分别触发计算任务###想到的解决方案:1.利用crontab定时任务取出三个时间点并解析成cron语法写入crontab中执行2.利用python的 apscheduler模块最终选择使用apscheduler模块的data触发器类型轻松解决了 果然很强大 特在此学习记录一下apscheduler官方文档链接四个基本对象1.触发器(triggers):指定触发的方式或者条件date: from apscheduler.sc原创 2021-08-30 08:55:24 · 374 阅读 · 0 评论