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()
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()
转载于:https://www.cnblogs.com/levy/p/xls2csv.html