You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2020. It is now read-only.
importxlwtfromdatetimeimportdatetimestyle0=xlwt.easyxf('font: name Times New Roman, color-index red, bold on',
num_format_str='#,##0.00')
style1=xlwt.easyxf(num_format_str='D-MMM-YY')
wb=xlwt.Workbook()
ws=wb.add_sheet('A Test Sheet')
ws.write(0, 0, 1234.56, style0)
ws.write(1, 0, datetime.now(), style1)
ws.write(2, 0, 1)
ws.write(2, 1, 1)
ws.write(2, 2, xlwt.Formula("A3+B3"))
wb.save('example.xls')
Documentation
Documentation can be found in the docs directory of the xlwt package.
If these aren't sufficient, please consult the code in the
examples directory and the source code itself.
xlwt is a fork of the pyExcelerator package, which was developed by
Roman V. Kiseliov. This product includes software developed by
Roman V. Kiseliov <roman@kiseliov.ru>.
xlwt uses ANTLR v 2.7.7 to generate its formula compiler.
About
Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform.