摘要: 什么是django的signal 官方文档描述如下: Django includes a “signal dispatcher” which helps allow decoupled applications get notified when actions occur elsewhere in 阅读全文
posted @ 2018-04-30 06:41 keep_go 阅读(228) 评论(0) 推荐(0) 编辑
摘要: utf8mb4支持四字节 查看建表语句,默认编码utf8 查看表中每个字段的字符集 改变表的编码,为utf8mb4 alter table convert to character set utf8mb4; ``` 阅读全文
posted @ 2018-04-29 13:21 keep_go 阅读(1861) 评论(0) 推荐(0) 编辑
摘要: Q: 使用微信二次分享的时候,标题被截短,描述也变成了链接,图片也没有 solution 文档说明 1. "微信JS SDK说明文档" 2. JS SDK使用步骤 2.1 绑定域名 登录 "微信公众平台" 进入“公众号设置” “功能设置” “JS接口安全域名”,按照提示进行填写。 前端 2.2 引入 阅读全文
posted @ 2018-04-26 23:27 keep_go 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 多表查询,如果找不到关联两个表的方法, 可以使用 构建一个虚拟的表。 阅读全文
posted @ 2018-04-15 23:37 keep_go 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Python unicode转义字符\u的处理 python还有更为专业的方法来解决unicode转义字符问题,那就是unicode escape编码。 s2 = "\\u2121" s = s2.decode("unicode escape") 就可以了 阅读全文
posted @ 2018-03-16 22:52 keep_go 阅读(9335) 评论(0) 推荐(0) 编辑
摘要: How to filter a DateTimeField by date in Django? 阅读全文
posted @ 2018-01-31 22:57 keep_go 阅读(166) 评论(0) 推荐(0) 编辑
摘要: python闭包变量迟绑定 阅读全文
posted @ 2018-01-21 22:03 keep_go 阅读(390) 评论(1) 推荐(1) 编辑
摘要: 一、linux环境 === Ubuntu16.04 二、安装和配置虚拟环境 === 安装虚拟环境 sudo pip install virtualenv sudo pip install virtualenvwrapper virtualenvwrapper 是virtualenv的扩展管理包,可以 阅读全文
posted @ 2018-01-18 23:59 keep_go 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 插入排序 插⼊排序(英语: Insertion Sort) 是⼀种简单直观的排序算法。 它的⼯作原理是通过构建有序序列, 对于未排序数据, 在已排序序列中从后向前扫描, 找到相应位置并插⼊。 插⼊排序在实现上, 在从后向前扫描过程中,需要反复把已排序元素逐步向后挪位, 为最新元素提供插⼊空间。 py 阅读全文
posted @ 2018-01-18 23:55 keep_go 阅读(361) 评论(0) 推荐(0) 编辑
摘要: mac install m2Crypto === error solution 阅读全文
posted @ 2018-01-13 23:45 keep_go 阅读(1498) 评论(0) 推荐(0) 编辑