# 循环 for rx inrange(sh.nrows): print sh.row(rx) # Refer to docs for more details. # Feedback on API is welcomed.
xlwt Quick Start
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import xlwt from datetime import datetime
style0 = 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')