代码改变世界

阅读排行榜

python 连接各数据库的代码

2021-08-24 22:32 by 起个昵称, 1052 阅读, 收藏,
摘要: 转载自:测试派 http://testingpai.com/article/1596527686073 1. MySQL -- 已经实践 pip install pymysql import pymysql# 第一步:连接到数据库con = pymysql.connect(host="localho 阅读全文

windows监控主机资源使用情况工具 - Prometheus + windows_exporter + grafana

2022-06-14 11:54 by 起个昵称, 1035 阅读, 收藏,
摘要: 下载 Prometheus:https://prometheus.io/download/ grafana:https://grafana.com/grafana/download?platform=windows windows_exporter:https://github.com/promet 阅读全文

用python调试Appium和雷电模拟器连接时出现Original error: Could not find 'adb.exe' in PATH

2020-09-11 22:26 by 起个昵称, 1021 阅读, 收藏,
摘要: 用python调试Appium和雷电模拟器连接时出现Original error: Could not find 'adb.exe' in PATH 确定环境变量没错,用管理员启动Appium就不会出现这个问题了 阅读全文

Python+Selenium学习笔记8 - 多表单&多窗口切换

2018-05-15 22:57 by 起个昵称, 899 阅读, 收藏,
摘要: 1.多表单切换 下图为待测页面:内嵌百度首页 切换到百度首页进行操作 switch_to.frame()可以直接取表单的id或name属性。如果iframe没有可用的id和name属性。可用以下方式进行定位 还有其他方法switch_to.parent_content(), switch_to.de 阅读全文

Python+Selenium学习笔记19 - 自动发送邮件

2018-06-05 22:27 by 起个昵称, 867 阅读, 收藏,
摘要: 发送简单的邮件 用一个QQ邮箱发送到另一个QQ邮件。 首先设置QQ邮箱,邮箱设置 -> 账号 开启SMTP服务,点击开启按钮,按提示进行操作,需要1毛钱的短信费。开启后如下所示 运行结果如下 发送带附件的邮件 运行结果 阅读全文
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页