ws.write(7,2,"Tao") #对修改后的内容进行保存 old_content.save(base_dir("data.xls")) Python批量修改Excel中的文件内容 # -*- coding: utf-8 -*- from xlrd import open_workbook from xlutils.copy import copy # 括号里放入要读取的文件的绝对路径 wb = open_workbook('./res/bing.xls') # ...