首页 > 随笔档案 > xls2csv

xls2csv

Publish:

1.安装

pip install csvkit

2.usage

from csvkit.utilities.in2csv import In2CSV

args = ['-f', 'xlsx', file.xls] //args = ['-f', 'xls', file.xls] 

utility = In2CSV(args, open('file.csv', 'a'))

utility.main()
                        

声明: 本文采用 BY-NC-SA 授权。转载请注明转自: levy