how to bold csv data in excel?

前端 未结 4 1552
长发绾君心
长发绾君心 2021-01-11 16:24

I work on a python(django) project. I write csv code as follows,

response = HttpResponse(mimetype=\'text/csv\')    
response[\'Content-Disposition\'] = \'att         


        
4条回答
  •  臣服心动
    2021-01-11 17:01

    CSV only contains data, it doesn't contain any formatting information. If you need to format your data, I'd suggest actually creating an XLS file instead of a CSV file. Try using something like xlwt.

提交回复
热议问题