Apply format to a cell after being written in XlsxWriter

后端 未结 4 1636
野趣味
野趣味 2020-12-05 17:28

I work on python using XlsxWriter and I\'ve been trying to solve this problem with no success:

My app must create an Xlsx file in which data is shown in a table-like

4条回答
  •  长情又很酷
    2020-12-05 18:07

    Another workaround is to use conditional_format, and use type='no_errors':

    worksheet.conditional_format(your_range, {'type': 'no_errors',
                                              'format': your_format})
    

提交回复
热议问题