①通过xlutils在已有表中写数据(这种方法会改变excel的样式) import xlrd,xlwt from xlutils.copy import copy 将已存在的Excel表格赋值给变量 excel_file = xlrd.open_workbook("准备导入的资产.xls") 复制 Read More
posted @ 2022-05-26 16:30 sriver_dl Views(580) Comments(0) Diggs(0) Edit
--需要先安装pytest 【1】数据驱动@pytest.mark.parametrize: @pytest.mark.parametrize只对于同一用例不同数据的传参 ①只有一个参数时 datatest04=['zhangsan','lisi'] @pytest.mark.parametrize Read More
posted @ 2022-05-26 16:29 sriver_dl Views(262) Comments(0) Diggs(0) Edit