F查询 from django.db.models import F,Q # 1.查询库存数大于卖出数的书籍 res = models.Book.objects.filter(kucun__gt=F('maichu')) print(res) #<QuerySet [<Book: Book obje ...
分类:
其他好文 时间:
2020-01-08 23:03:52
阅读次数:
83
Hash算法在应用中又称为指纹(fingerprint)或者摘要(digest)算法,是一种将任意长度的明文串映射为较短的数据串(hash值)的算法,目前的Hash算法主要是MD5系列算法与SHA系统算法 一个好的Hash算法需要具有四个特性,即正向快速 ,逆向困难,输入敏感 ,冲突避免 正向快速 ...
分类:
编程语言 时间:
2020-01-08 19:27:17
阅读次数:
119
Generators offer flexible alternatives to working with arrays and how you want to iterate through the data. While most scenarios are covered by the me ...
分类:
编程语言 时间:
2020-01-08 19:22:47
阅读次数:
98
上期发现视频名称中包含木马文件 然后教大家使用标签进行过滤 {$vo.vod_name|mac_filter_html} 可是最近发现现在黑客行为是全字段挂马,修改数据字段格式挂马,多重嵌套挂马。 真的是防不上防啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 ...
分类:
移动开发 时间:
2020-01-08 19:11:06
阅读次数:
94
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter; echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter; echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter; e ...
分类:
其他好文 时间:
2020-01-07 20:14:59
阅读次数:
115
[TOC] Django的templates(模板) django的模板=HTML代码+模板语法 存放于templates目录下的html文件称之为模板文件 如果我们想要返回的html页面中的数据是动态的,那么必须在html页面中嵌入变量,这便用到了django的模板语法 变量 模板语法符号:{{ ...
分类:
其他好文 时间:
2020-01-07 20:12:56
阅读次数:
108
<wxs module="filter"> var filter = { numberToFix: function (hex) { // 16进制颜色值的正则 // var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/; var reg = getRegEx ...
分类:
微信 时间:
2020-01-07 16:32:53
阅读次数:
322
window下用taskkill杀死进程 摘自:https://www.cnblogs.com/wangzhaobo/p/9200743.html TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID proc ...
使用缓存服务来缓解ES压力 架构如下: nginx json filebeat redis elasticsearch /var/log/nginx/access.log ab c 10 n 100 http://localhost/oldxu bash systectl restart fileb ...
分类:
其他好文 时间:
2020-01-07 01:11:12
阅读次数:
209
URL请求处理流程: 1. URL处理方法映射 1.1 Controller 页面控制器,内部可以包含处理具体请求的方法(@RequestMapping)。 @Controller:返回视图,如jsp或者html文件; @RestController:返回JSON,如字符串,或者数组; 1.2 @R ...
分类:
编程语言 时间:
2020-01-05 22:19:42
阅读次数:
176