How to use xlrd for writing an excel file

南笙酒味 提交于 2021-02-08 07:47:39

问题


How can I write an excel file(xls/xlsx) using xlrd module alone? I tried from xlrd import xlsx, but couldn't find anything that will really help me.


回答1:


xlrd only reads excel files. To write them, look up xlwt, xlutils, xlsxwriter, or openpyxl - all of these packages can write binary files excel can read. Excel can also read csv files, which the csv package (included with Python) can write (and read).



来源:https://stackoverflow.com/questions/41886791/how-to-use-xlrd-for-writing-an-excel-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!