会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yescarf
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
13
下一页
2021年8月3日
django-url路径书写规范
摘要: 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
阅读(230)
评论(0)
推荐(0)
2021年8月2日
django-模板继承 block、endblock、 extend
摘要: 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
阅读(671)
评论(0)
推荐(0)
django-标签中的过滤器
摘要: 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
阅读(24)
评论(0)
推荐(0)
django-模板中的for标签
摘要: 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
阅读(197)
评论(0)
推荐(0)
2021年8月1日
django-模板中if标签的应用
摘要: 模板视图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
阅读(486)
评论(0)
推荐(0)
2021年7月30日
django-post提交与显示(小案例)
摘要: 一个简单的小案例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
阅读(170)
评论(0)
推荐(0)
django-templates 模板变量
摘要: 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
阅读(96)
评论(0)
推荐(0)
2021年7月5日
实用代码
摘要: 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
阅读(75)
评论(0)
推荐(0)
2021年5月8日
游戏渠道后台上线
摘要: 派生包,素材要求,sdk嵌入
阅读全文
posted @ 2021-05-08 14:55 yescarf
阅读(404)
评论(0)
推荐(0)
2021年3月2日
游戏投放中的-LTV概念与价值
摘要: 游戏运营-数据分析、LTV、如何选择投放渠道
阅读全文
posted @ 2021-03-02 14:39 yescarf
阅读(4576)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
13
下一页
公告