摘要: http://www.cnblogs.com/wupeiqi/articles/6229292.html 阅读全文
posted @ 2018-09-19 23:39 老董1983 阅读(97) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/wupeiqi/articles/6283017.html 阅读全文
posted @ 2018-09-19 15:04 老董1983 阅读(103) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/wupeiqi/p/6144178.html https://www.cnblogs.com/wupeiqi/articles/5246483.html https://www.cnblogs.com/wupeiqi/p/6216618.html 上节 阅读全文
posted @ 2018-09-06 15:38 老董1983 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 线程 内存共享 线程同时修改同一份数据时必须加锁,mutex互斥锁 递归锁 def fun(n): code t = threading.Thread(target=run,args=(n,)) t.start() t.join()#必须要等待线程执行完才能往下执行 守护线程t.setDaemon( 阅读全文
posted @ 2018-09-04 14:27 老董1983 阅读(94) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/wupeiqi/p/5246483.html 上节内容回顾: 1.生命周期 url>路由>函数或类>返回字符串或者模板语言 form表单提交: 2.路由系统URL a. /index/ -> 函数或类 b. /index/(\d+) -> 函数或类 参 阅读全文
posted @ 2018-09-04 14:26 老董1983 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 一、模块 1、定义 模块:用来从逻辑上组织python代码(变量、函数、类、逻辑:实现一个功能),本质就是.py结尾的python文件。(例如:文件名test.py,对应的模块名就是test) 包:本质就是一个目录(必须带有一个__init__.py文件),作用就是从逻辑上组织模块,下边可以放一堆模 阅读全文
posted @ 2018-09-04 14:26 老董1983 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 上节回顾 1、Django请求的生命周期 武彦涛: 路由系统 -> 试图函数(获取模板+数据=》渲染) -> 字符串返回给用户 2、路由系统 王腾: /index/ -> 函数或类.as_view() /detail/(\d+) -> 函数(参数) 或 类.as_view()(参数) /detail 阅读全文
posted @ 2018-09-03 17:42 老董1983 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 上届回顾 1.Django请求生命周期 ->URL对应关系(匹配) ->视图函数 ->返回用户字符串 ->Url对应关系(匹配) ->视图函数 ->打开一个HTML文件,读取内容 2.创建django project django-admin startproject mysite mysite m 阅读全文
posted @ 2018-08-31 16:31 老董1983 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 一. JS正则表达式 test -判断字符串是否符合规定的正则表达式 exec -获取匹配的数据 rep = = /\d+/; rep.test("fdsajlk123");//返回true rep.exec("fsajk456jfsal12");//返回["456"] var rep=/\bjav 阅读全文
posted @ 2018-08-29 23:41 老董1983 阅读(79) 评论(0) 推荐(0) 编辑
摘要: jQuery 上次遗忘: 为同一个标签内容添加两个动作; http://jquery.cuishifeng.cn 模块<==>类库 DOM/BOM/JavaScript的类库 一 查找元素 DOM 10个左右 jQuery 选择器 1. id $('#id') 2. class <div class 阅读全文
posted @ 2018-08-23 23:34 老董1983 阅读(71) 评论(0) 推荐(0) 编辑