2018年11月20日

将用pillow处理后的图片,直接生成内容返回到网页

摘要: 我们可以用 Django 直接把生成的内容返回到网页,以下是操作过程: from django.utils.six import BytesIO#视图层代码 def home(request): image=Image.open(r'D:\webtest\untitled1\app01\aaa.pn 阅读全文

posted @ 2018-11-20 15:19 程序员小朱 阅读(443) 评论(0) 推荐(0) 编辑

导航