摘要: 文件名称也要转为 bytes,使用对应编码 encode 或者 from email.header import Header att2["Content-Disposition"] = 'attachment; filename="%s"'% \ str(Header(filename,'utf- 阅读全文
posted @ 2018-01-28 01:05 willowj 阅读(700) 评论(0) 推荐(0) 编辑