首先我们需要安装名为xlrd和xlwt这两个库,其中xlrd是读excel,xlwt是写excel的库 pip install xlrd pip install xlwt 然后根据以下示例进行操作 读文件: import xlrd#打开一个workbookworkbook = xlrd.open_workbook('E:\\Code\\Python\\testdata.xls')#抓取所有sheet页的名称workshe
专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]
Copyright (C)ICode9.com, All Rights Reserved.
ICode9版权所有