我在一个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"文件.
我该怎么做?请帮忙!
| 归档时间: |
|
| 查看次数: |
26708 次 |
| 最近记录: |