你可以使用Python xlrd包来读取Excel数据,代码如下:import xlrd# 打开文件 workbook = xlrd.open_workbook("data.xls")# 获取所有sheet sheets = workbook.sheets()# 获取特定sheet sheet1 = workbook.sheet_by_index(0)# 获取数据 data = sheet1.row_values(1)
python xlrd读取excel数据代码
最新推荐文章于 2024-08-23 16:53:34 发布