import xlrd
openFile = xlrd.open_workbook(‘读取excel地址’)
read_sheet = openFile.sheet_by_name(‘读取的表格名称’)
#读取单元格值
read_sheet.cell_value(‘int行’, ‘int列’)
#读取总行数
read_sheet.nrows
#读取总列数
read_sheet.ncols
import xlrd
openFile = xlrd.open_workbook(‘读取excel地址’)
read_sheet = openFile.sheet_by_name(‘读取的表格名称’)
#读取单元格值
read_sheet.cell_value(‘int行’, ‘int列’)
#读取总行数
read_sheet.nrows
#读取总列数
read_sheet.ncols