我在 Django 中是这样写的:
writer.writerow(['VideoName ', 'Director ', 'Cameraman ', 'Editor ', 'Reporter ', 'Tag '])
它是这样用 CSV 编写的:
response = HttpResponse(content_type='text/csv')
response['Content-Disposition'] = 'attachment; filename="report.csv"'
Video, Director, Cameraman
但我只想要:
Video Director Cameraman
我在 Django 中这样做。