07 2021 档案

摘要:一个简单的小案例post提交与输出 分为加载页面与显示页面 views.py def cal(request): return render(request,'example.html') def result(request): info={} info['value1']=int(request 阅读全文
posted @ 2021-07-30 20:34 yescarf 阅读(148) 评论(0) 推荐(0) 编辑
摘要:view视图中 from django.http import HttpResponse from django.template import loader from django.shortcuts import render #模板中传入参数 def test_html(request): # 阅读全文
posted @ 2021-07-30 19:18 yescarf 阅读(91) 评论(0) 推荐(0) 编辑
摘要:1.将文件夹内图片批量旋转 import os from PIL import Image for i in os.listdir(): im=Image.open(i) im_rotate=im.transpose(Image.ROTATE_90) #逆时针旋转90度 im_rotate.save 阅读全文
posted @ 2021-07-05 19:36 yescarf 阅读(69) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示