摘要: import requestsimport jsonclass reques_method(): ''' **kwargs:控制访问参数,为可选项 params : 字典或字节序列,作为参数增加到url中 data : 字典、字节序列或文件对象,作为Request的内容 json : JSON格式的 阅读全文
posted @ 2020-11-18 15:18 生涯无畏 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 以上面的excel格式,输出字典类型: import xlrddef read_excel_data(): filename = 'E:\学历列表.xls' data = xlrd.open_workbook(filename) table = data.sheet_by_name('Sheet1' 阅读全文
posted @ 2020-07-24 17:26 生涯无畏 阅读(4711) 评论(0) 推荐(1) 编辑
摘要: 查看状态: systemctl status firewalld 启动: systemctl start firewalld 关闭: systemctl stop firewalld 开机禁用 : systemctl disable firewalld 开机启用 : systemctl enable 阅读全文
posted @ 2019-12-08 12:47 生涯无畏 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 查看系统是否安装了MySQL,有些没安装但是有路径,那是因为系统安装了mariadb-libs,对应的配置文件目录:/etc/my.cnf(下面就根据mariadb来安装mysql) 查看系统预装mariadb:rpm -qa | grep mariadb 1、将解压过的MySQL放到/usr/lo 阅读全文
posted @ 2019-11-17 14:00 生涯无畏 阅读(841) 评论(0) 推荐(0) 编辑
摘要: Message: Parameters were incorrect. We wanted {"required":["value"]} and you sent ["text","sessionId","id","value"] 原因: selenium新版导致的问题,降级后解决: 最新的版本卸载 阅读全文
posted @ 2019-11-04 15:11 生涯无畏 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 只作为自己学习的目标,百度找的。谢谢 先学习元素的定位,selenium 提供了id、name、class name、 tag name、link text、partial link text、 xpath、css、等定位方法。xpath和css 功能强大语法稍微复杂,在这其间你可能还需要了解更多的 阅读全文
posted @ 2018-06-28 10:36 生涯无畏 阅读(190) 评论(0) 推荐(0) 编辑