上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: 1. 新建项目和应用 django-admin.py startproject learn_models # 新建一个项目 cd learn_models # 进入到该项目的文件夹 django-admin.py startapp people # 新建一个 people 应用(app) 2. 添加 阅读全文
posted @ 2019-12-24 12:04 一只小白呀 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1. 登录注册 2. 老师 班级管理 学员管理 3. 增删改差 Cookie: 就是保存在浏览器端的键值对 可以利用做登录 1、保存在用户浏览器 2、可以主动清楚 3、也可以被“伪造” 4、跨域名cookie不共享 5、浏览器设置不接受cookie Cookie是什么? 客户端浏览器上保存的键值对 阅读全文
posted @ 2019-12-24 01:25 一只小白呀 阅读(363) 评论(0) 推荐(0) 编辑
摘要: dic={1:'alex','age':35,'hobby':{'girl_name':'铁锤','age':45},'is_handsome':True} dic={'age':'alex','age':35,'hobby':{'girl_name':'铁锤','age':45},'is_hand 阅读全文
posted @ 2019-11-05 20:36 一只小白呀 阅读(106) 评论(0) 推荐(0) 编辑
摘要: def sqlexec(last_nid, is_next): import pymysql conn = pymysql.connect(host='192.168.12.29', port=3306, user='root', passwd='123', db='IndexDB', charse 阅读全文
posted @ 2019-11-05 20:15 一只小白呀 阅读(1019) 评论(0) 推荐(0) 编辑
摘要: 1、视图 视图当作表2、触发器 insert ...3、存储过程 insert into tb1() update tb2... 事务:innodb p12(out status int): try: insert into tb1() update tb2... set status=1 exce 阅读全文
posted @ 2019-11-05 19:52 一只小白呀 阅读(120) 评论(0) 推荐(0) 编辑
摘要: import pymysqlconn = pymysql.connect(host='127.0.0.1', port=3306, user='root', password='666', db='sqlexample',charset='utf-8')cursor = conn.cursor(cu 阅读全文
posted @ 2019-11-05 19:47 一只小白呀 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 1、增删改差2、其他: 分组: group by xxx having 聚合条件。。。 分页: 前几行, select .... limit 3; limit 3,4 # 第三行开始,取4行 limit 4 offset 3 # ... 连表: left outer join on # 表1 lef 阅读全文
posted @ 2019-11-03 19:16 一只小白呀 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 利用 pip 安装 Django pip install Django 如果想升级 pip 可以用: (sudo) pip install --upgrade pip 检查是否安装成功 终端上输入 python ,点击 Enter,进行 python 环境 >>> import django >>> 阅读全文
posted @ 2019-11-02 19:33 一只小白呀 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 增删改查 查 切片 []print(a[1:])#取到最后print(a[1:-1])#取到倒数第二值print(a[1:-1:1])#从左到右一个一个去取print(a[1::2])#从左到右隔一个去取print(a[3::-1])b=a[3::-1]print(b)#['sanpang', 'x 阅读全文
posted @ 2019-11-01 21:08 一只小白呀 阅读(170) 评论(0) 推荐(0) 编辑
摘要: pycharm使用 集成开发环境(IDE,Integrated Development Environment ) VIM #经典的linux下的文本编辑器 Emacs #linux 文本编辑器, 比vim更容易使用 Eclipse # Java IDE,支持python, c ,c++ Visua 阅读全文
posted @ 2019-11-01 21:03 一只小白呀 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页