openpyxl Delete sheet

When you create excel using openpyxl, sometimes you need to delete the unwanted sheet, there are two ways to look at:
a: del wb [ "sheet_name"]
two: WS = wb [ "sheet_name"]
wb.remove [WS]

Published 22 original articles · won praise 3 · Views 760

Guess you like

Origin blog.csdn.net/weixin_39662684/article/details/104813282