#批量命名import xlwings as xwapp = xw.App(visible=False,add_book=False)workbook = app.books.open("测试表.xlsx")for sheet in workbook.sheets: sheet.name=sheet.name.replace("彩印之","银河")workbook.save()app.quit()
京公网安备 11010502049817号