摘要: 1、var块级是暴露在全局的,可重复声明(可覆盖值),存在变量提升。 2、let声明的变量,是块级作用域,不能重复声明。不存在变量提升(变量只能先定义后使用)。 3、const声明一个只读的变量,一旦声明,常量的值就不能改变。(一旦声明就必须初始化,不能等到以后赋值) 全部: var b = []; 阅读全文
posted @ 2020-09-23 10:22 谭文章 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 在对Django的数据库的某张表增加、删除、修改之前或者之后记录一条日志,用信号来做 阅读全文
posted @ 2020-04-25 12:01 谭文章 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-02 11:44 谭文章 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 循环完才点开 阅读全文
posted @ 2019-09-28 10:02 谭文章 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 内容回顾: 1. 函数编程:数据和逻辑分离 a= 123 b = 456 c = 789 def exc3(proc_name): callproc(xxx) return xxx def exc4(proc_name): callproc(xxx) return xxx 2. 面向对象:数据和逻辑 阅读全文
posted @ 2019-09-27 21:08 谭文章 阅读(143) 评论(0) 推荐(0) 编辑
摘要: from sqlalchemy.ext.declarative import declarative_basefrom sqlalchemy import Column, Integer, String, ForeignKey, UniqueConstraint, Index,CHAR,VARCHA 阅读全文
posted @ 2019-09-27 21:08 谭文章 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-27 08:58 谭文章 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Day61 回顾: SQL语句: 数据行: 临时表:(select * from tb where id>10) 指定映射: select id,name,1,sum(x)/count() 条件: case when id>8 then xx else xx end 三元运算: if(isnull( 阅读全文
posted @ 2019-09-25 23:19 谭文章 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 阅读全文
posted @ 2019-09-25 20:58 谭文章 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 恢复内容结束 阅读全文
posted @ 2019-09-24 18:35 谭文章 阅读(149) 评论(0) 推荐(0) 编辑