小编Jak*_*han的帖子

如何在excel中加粗csv数据?

我在一个python(django)项目上工作.我写csv代码如下,

response = HttpResponse(mimetype='text/csv')    
response['Content-Disposition'] = 'attachment; filename=DueDateWiseSearch.csv'    
writer =  csv.writer(response)    
writer.writerow(['Infant Name','Mother Name','Mother Address',
     'Next Vaccine Dose','Due date','Coments'])
Run Code Online (Sandbox Code Playgroud)

这一行是标题,我需要加粗所有标题文本.我下载csv作为ms"Excel"文件.

我该怎么做?请帮忙!

python

10
推荐指数
2
解决办法
3万
查看次数

标签 统计

python ×1