CMD安装 xlwt
pip install xlwt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
源码————
import xlwt
new_workbook = xlwt.Workbook()
worksheet = new_workbook.add_sheet(‘new_test‘)
worksheet.write(0,0,‘test‘)
new_workbook.save(‘d:/test.xls‘)
原文地址:https://www.cnblogs.com/guowei2020/p/12272528.html
时间: 2024-11-02 14:25:09