11 2019 档案

摘要:之前在公司学习用python操作mysql数据库,但是实际上我们公司一直用的是postgresql数据库,所以我寻思着照葫芦画瓢也写一个python操作postgresql的工具类吧!这里用到了psycopg2模块 直接上代码: import psycopg2 class PostGreSQL: # 阅读全文
posted @ 2019-11-11 00:15 风车车与车车风 阅读(2291) 评论(0) 推荐(0)
摘要:封装需要用的工具类: 1、封装读取Excel的工具类,这里选用的是pandas: import pandas as pd path = 'test.xlsx' sheet_name = 'test_data' class with_excel: #构造函数,调用类时就运行 def __init__( 阅读全文
posted @ 2019-11-11 00:05 风车车与车车风 阅读(1096) 评论(0) 推荐(0)
摘要:airtest——web自动化(二) 二、在pythonIDE中配置airtest环境 在python本地环境中运行airtest脚本我们需要用到3个第三方包:airtest(开源),poco(开源),airtest_selenium(未开源),airtest与poco作为python的第三包是可以 阅读全文
posted @ 2019-11-10 23:54 风车车与车车风 阅读(1494) 评论(1) 推荐(0)