随笔分类 -  Python

摘要:钉钉应用开发-Python操作钉钉文档 一: 服务端SDK下载 服务端SDK下载 - 钉钉开放平台 (dingtalk.com) pip3 install alibabacloud_dingtalk 二:钉钉开放平台 开发者后台 (dingtalk.com) 基础概念 - 钉钉开放平台 (dingt 阅读全文
posted @ 2024-07-04 15:22 DBArtist 阅读(3253) 评论(1) 推荐(1)
摘要:一:Pandas操作Excel 1.1: 创建/读取excel文件 读取excel pd.read_excel(filepath) 读取指定标题行 pd.read_excel(filepath,header=2) 读取设置索引列 pd.read_excel(filepath,index_col=co 阅读全文
posted @ 2022-09-16 15:04 DBArtist 阅读(1513) 评论(0) 推荐(1)
摘要:1、Python时间模块 import time import datetime # 一: time模块 ############## # 1、时间戳 print (time.time()) # 1661827966.8915884 # 2、格式化的字符串形式:2020-11-11 11:11:11 阅读全文
posted @ 2022-03-25 14:58 DBArtist 阅读(827) 评论(0) 推荐(1)
摘要:** python把数据转为图片 / python推送图片到钉钉群 ** 需求:通过python访问mysql数据库,统计业务相关数据。把统计的结果数据生成表格形式的图片并发送到钉钉群里。 一:CentOS安装wkhtmltoimage 、wkhtmltopdf wkhtmltopdf 和 wkht 阅读全文
posted @ 2021-12-16 15:09 DBArtist 阅读(2809) 评论(0) 推荐(0)
摘要:#详细追踪 python -m trace --trace pyscript.py #显示调用了哪些函数 python -m trace --trackcalls pyscript.py 阅读全文
posted @ 2020-09-15 10:03 DBArtist 阅读(893) 评论(0) 推荐(0)
摘要:报错信息: monitor_mssql.py:10: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Py 阅读全文
posted @ 2020-08-24 14:24 DBArtist 阅读(5696) 评论(0) 推荐(2)
摘要:python3 安装pymssql失败 报错信息: AttributeError: module 'platform' has no attribute 'linux_distribution' 解决方法: 网上查了一堆后说是python3.7以后platform.linux_distributio 阅读全文
posted @ 2020-03-16 09:41 DBArtist 阅读(2058) 评论(0) 推荐(0)
摘要:一、先安装python3所依赖的软件包,非常重要(否则可能会出现python3安装成功,却缺少相应的pip) [root@centos src]# yum groupinstall "Development tools" -y [root@centos src]# yum -y install zl 阅读全文
posted @ 2020-03-12 21:11 DBArtist 阅读(902) 评论(0) 推荐(0)
摘要:python3 安装pyodbc失败 报错1: 关键报错信息: fatal error: sql.h: No such file or directory [root@centfos python38]# pip3 install pyodbc Collecting pyodbc Using cac 阅读全文
posted @ 2020-03-12 20:58 DBArtist 阅读(5203) 评论(0) 推荐(0)
摘要:Django配置MySQL数据库方法 一、settings.py文件中修改数据库配置为下面的内容: # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases DATABASES = { 'default': 阅读全文
posted @ 2019-10-06 09:00 DBArtist 阅读(649) 评论(0) 推荐(0)