python接口自动化学习笔记(封装方法用于读取excel)

本篇是使用xlrd实现的对excel的数据进行读取,xlrd网上demo不少,不作过多叙述,下面主要讲解封装的思路: 首先贴出测试用的excel表格 python 1.实现获取excel某张表的行数、单元格数据 #coding=utf-8 import xlrd #获取excel文件 data = xlrd.open_workbook('file_path/xxx.xls') #获取第一张表数据
相关文章
相关标签/搜索