python (django)导出数据库中的信息为excel表格
转载自 添加链接描述,针对对自己遇到的坑做了些许修改from django.http import HttpResponsefrom xlwt import *from StringIO import StringIO #需要stringIO,这是python2中的,如果是python3,使用 from io import StringIOdef excel_export(request...