2012-02-21 21 views

Trả lời

8

tôi nhận nó làm việc như thế này:

currency_style = xlwt.XFStyle()

currency_style.num_format_str = "[$$-409]#,##0.00;-[$$-409]#,##0.00"

sheet.write(row+2, col, val, style=currency_style)

+0

Đừng bạn yêu Excel? ;) –

Các vấn đề liên quan