我知道之前已经回答过(xlwings - Delete a range of rows),但是不再有效了......
我使用python 2.7和xlwings 0.11.7编辑:(在Mac上)
上述问题的答案:
import xlwings as xw
from xlwings.constants import DeleteShiftDirection
sht = xw.sheets.active
sht.range(str(currRow) + ':65536').api.Delete(DeleteShiftDirection.xlShiftUp)
有没有人知道如何删除(不只是清除值)一行或一行范围?