📅  最后修改于: 2022-03-11 14:45:50.390000             🧑  作者: Mango
import openpyxl as xl
wb = xl.load_workbook()
ws = wb.active
ws.delete_rows(firstrow, numberofrows) #for multiple row deletion
ws.delete_rows(1, ws.max_row+1) # for entire sheet
ws.delete_rows(rownum) #for single row