使用Python把数据写入Excel.
usage="%prog [-d (datasetfile)] [-x (xlsfile)]"
op=OptionParser(usage=usage)
op.add_option('-d','--datasetfile',dest='dataset_file',help='input a dataset file')
op.add_option('-x','--xlsfile',dest='xls_file',help='output a excel file with one sheet')
op.add_option('-o','--onexlsfile',dest='onexls_file',help='output a excel file with multiple sheets ')
1