随笔分类 -  python

摘要:外部调用python接口,返回数据 这种方式一般可以通过http接口,定义接口的ip和端口,外部通过ip和端口调用,调用的程序再返回结果。 from gevent import monkey# 让Gevent处理所有阻塞操作,提升并发性能,要放在开头位置monkey.patch_all()from 阅读全文
posted @ 2023-10-27 10:25 阿锋888 阅读(59) 评论(0) 推荐(0) 编辑
摘要:安装脚本:阿里云盘-文件-备份盘-python-Miniconda3-py37_4.10.3-Linux-x86_64.sh 1.授可执行权限,直接执行 2.按回车键继续 3.出现介绍,按大概3次空格 4.输入yes,接受许可条款 5.默认安装在/root/miniconda3,可以输入自定义安装路 阅读全文
posted @ 2023-10-25 14:47 阿锋888 阅读(31) 评论(0) 推荐(0) 编辑
摘要:excel文件是以月份作为sheet页,日作为首行列,实现每日巡检正常后对该日列下第3和16行赋值对号。 当excel多页时,openpyxl库修改excel打开后无法默认显示在修改页,为此可借鉴方法2--win32库(但此库只能在window下使用),后来换了种思路:每月1号将模板进行排序,然后将 阅读全文
posted @ 2023-10-23 17:42 阿锋888 阅读(89) 评论(0) 推荐(0) 编辑
摘要:ConfigParser 是用来读取配置文件的包。 模块介绍https://www.cnpython.com/pypi/configparser ini配置文件的格式如下:中括号“[ ]”内包含的为section。section 下面为类似于key-value 的配置内容。 配置文件config.i 阅读全文
posted @ 2023-10-21 11:47 阿锋888 阅读(69) 评论(0) 推荐(0) 编辑
摘要:chinesecalendar模块介绍链接chinesecalendar · PyPI from datetime import datetime import os from chinese_calendar import is_workday #工作日 from chinese_calendar 阅读全文
posted @ 2023-10-20 17:14 阿锋888 阅读(1594) 评论(0) 推荐(0) 编辑
摘要:from datetime import datetimeimport smtplib import email.mime.text import MIMEText # 构建邮件头 from email.header import Header from email.mime.multipart i 阅读全文
posted @ 2023-10-20 16:50 阿锋888 阅读(265) 评论(0) 推荐(0) 编辑
摘要:1. 安装浏览器和对应驱动 因为浏览器默认安装均为最新版本且找不到对应驱动,所有使用旧版浏览器并禁止自动更新。 1.1 windows版本和Linux-Ubuntu/Debian 谷歌旧版浏览器下载地址https://www.slimjet.com/chrome/google-chrome-old- 阅读全文
posted @ 2023-10-11 23:39 阿锋888 阅读(237) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示