python的xlwt库写入报错Exception: String longer than 32767 characters
使用python的xlwt库写入xls的时候,报错Exception: String longer than 32767 characters解决办法:使用xlsxwriter库,这个库是将数据截断,但是不会报错import xlsxwriterdef write_excel_xls(path, sheet_name, value): index = len(value) workbook = xlsxwriter.Workbook(path) sheet = wor