如题,我使用pyexcelerator来操作excel文件。
代码:
from pyExcelerator import parse_xls
fpath='D:\\Capacity_20120811.xls'
eData=parse_xls(fpath)
>>> eData
[(u'testExcelReport_hr',
{(0, 0): u'Deletetime',
(0, 1): u'Food',
(0, 2): u'Peak Rate',
(0, 3): u'Total Bytes',
(0, 4): u'Total Msg No',
(1, 0): u'20110824T05',
(1, 1): u'111BSA',
(1, 2): 6255326.0,
(1, 3): 16226057.0,
(1, 4): 127.0,
(2, 0): u'20110824T06',
(2, 1): u'111BSA',
(2, 2): 352978.0,
(2, 3): 672104.0,
(2, 4): 2124.0})]
我想删除工作表sheetname:'testExcelReport_hr'