xxzxws

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2019年2月26日

摘要: {{ forloop.counter }} html页面 自动显示顺序ID git的配置 先执行命令 git init 。 进入git 文件夹 git config --global user.name "xxxxxx" 配置姓名 git config --global user.email "ea 阅读全文
posted @ 2019-02-26 13:45 xxzxws 阅读(139) 评论(0) 推荐(0) 编辑

2019年1月7日

摘要: def login(request): m = Member.objects.get(username=request.POST['username']) if m.password == request.POST['password']: request.session['member_id']  阅读全文
posted @ 2019-01-07 21:58 xxzxws 阅读(80) 评论(0) 推荐(0) 编辑

摘要: class bcb(models.Model): name = models.CharField(max_length=64,verbose_name='班次名称') verbose_name = '' 这样写在后台页面就显示后面的名字,增加可读性 time_start = models.CharF 阅读全文
posted @ 2019-01-07 21:24 xxzxws 阅读(116) 评论(0) 推荐(0) 编辑

2018年9月26日

摘要: 1、定时执行任务 https://www.cnblogs.com/ohyb/p/9084011.html 阅读全文
posted @ 2018-09-26 22:06 xxzxws 阅读(102) 评论(0) 推荐(0) 编辑

摘要: 1、开发web的基本框架 socket http协议 HTML知识 数据库(pymysql,SQLAlchemy) HTTP协议: 无状态,短连接 》就是一次连接和 马上断开,下次连接无法识别身份 TCP :不断开 WEB应用(网站): HTTP协议: 发送: POST /index HTTP/1. 阅读全文
posted @ 2018-09-26 09:46 xxzxws 阅读(118) 评论(0) 推荐(0) 编辑

2018年9月15日

摘要: 1、requests 模块 res = requests.get("url") 请求网页 res.text 将获取的网页转化成文本格式 具体函数 res = requests.get("url") res.text >获取文本 res.content >下载内容 举例 img_res= rreque 阅读全文
posted @ 2018-09-15 22:25 xxzxws 阅读(85) 评论(0) 推荐(0) 编辑

2018年9月9日

摘要: import time 1、时间戳 timestamp time.time() 1481221748.254545秒 2、结构化时间 struct_time #time.localtime() 结构化的时间,优势是可以分别对年月日 星期 一年第多少天 进行操作 #time.struct_time(t 阅读全文
posted @ 2018-09-09 20:57 xxzxws 阅读(120) 评论(0) 推荐(0) 编辑

2018年8月13日

摘要: 1、注册 登陆 账号 需要先建立wb文件 2、生成验证码 阅读全文
posted @ 2018-08-13 22:09 xxzxws 阅读(146) 评论(0) 推荐(0) 编辑

2018年8月12日

摘要: 1、基础知识准备 详见随笔的第二大点 https://www.cnblogs.com/ychj/p/9461550.html 2、具体运行原理 def outer(func): def inner(*args,**kwargs): >inner 的参数采用万能参数 print("before") r 阅读全文
posted @ 2018-08-12 17:49 xxzxws 阅读(107) 评论(0) 推荐(0) 编辑

2018年8月11日

摘要: 1、返回值和参数 li = [11,22,33,44] def f(x): x.append(55) li = f(li) print(li) > 结果是 None 函数没有返回值的时候 默认是None 参数引用原函数,直接能修改这个函数 2、函数执行情况 def f1(): print(123) 阅读全文
posted @ 2018-08-11 23:20 xxzxws 阅读(162) 评论(0) 推荐(0) 编辑