上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: Django-URL书写规范 views.py #url_反向解析 def test_url(request): return render(request,'test_url.html') def test_url_result(request): return HttpResponse(' 响应 阅读全文
posted @ 2021-08-03 09:32 yescarf 阅读(218) 评论(0) 推荐(0) 编辑
摘要: django加载模板 extend block endblock views.py ##模板继承 def base_html(request): #基础模板页面 return render(request,'base_html.html') def music_html(request): retu 阅读全文
posted @ 2021-08-02 20:43 yescarf 阅读(597) 评论(0) 推荐(0) 编辑
摘要: django-标签的应用 官网链接 views def test_filter(request): dic={} dic['str']='sssqwqeqw' dic['int']=100 dic['html']='<script>alert("前路昭然你我共进")</script>' return 阅读全文
posted @ 2021-08-02 19:50 yescarf 阅读(18) 评论(0) 推荐(0) 编辑
摘要: django-for标签 for 标签内容 views.py ###test_for def test_if_for(request): dic={} dic['x']=20 dic['lst']=['zs','ls','ww'] return render(request,'test_if_for 阅读全文
posted @ 2021-08-02 14:08 yescarf 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 模板视图option标签+if判断 views from django.http import HttpResponse from django.shortcuts import render def mycal(request): if request.method=='POST': x=int( 阅读全文
posted @ 2021-08-01 21:53 yescarf 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 一个简单的小案例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 阅读(138) 评论(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 阅读(89) 评论(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 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 派生包,素材要求,sdk嵌入 阅读全文
posted @ 2021-05-08 14:55 yescarf 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 游戏运营-数据分析、LTV、如何选择投放渠道 阅读全文
posted @ 2021-03-02 14:39 yescarf 阅读(3882) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页