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

浙公网安备 33010602011771号