会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
周零开
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2019年6月15日
Flask 笔记整理--视图
摘要: 1.Flask app对象创建 参数初始化 # 创建flask的应用对象 # __name__表示当前的模块名字 # 模块名,flask以这个模块所在的目录为总目录,默认这个目录中的static为静态目录,templates为模板目录 ...
阅读全文
posted @ 2019-06-15 12:49 周零开
阅读(29)
评论(0)
推荐(0)
2019年6月11日
nginx 日志报错 upstream sent too big header while reading response header from upstream
摘要: nginx 错误日志报错 upstream sent too big header while reading response header from upstream 在nginx.conf 内相对应位置添加如下3行 server { ...
阅读全文
posted @ 2019-06-11 22:33 周零开
阅读(26)
评论(0)
推荐(0)
mongodb 索引
摘要: 索引:以提升查询速度 测试:插入10万条数据到数据库中 > for(i=0;i db.t1.find({name:"test10000"}) >db.t1.find({name:'test10000'}).explain('executionStats')...
阅读全文
posted @ 2019-06-11 20:24 周零开
阅读(20)
评论(0)
推荐(0)
2019年6月10日
xxxx does not support chkconfig 的问题
摘要: # chkconfig --add xxxservice xxx does not support chkconfig 需要在该启动脚本里添加如下文件信息 # chkconfig: 2345 50 90 # description: test mic se...
阅读全文
posted @ 2019-06-10 20:43 周零开
阅读(12)
评论(0)
推荐(0)
2019年6月9日
monog 高级操作(聚合)
摘要: 聚合 aggregate 聚合(aggregate)主要用于计算数据,类似sql中的sum()、avg()聚合(aggregate)是基于数据处理的聚合管道,每个文档通过一个由多个阶段(stage)组成的管道,可以对每个阶段的管道进行分组、过滤等功能,...
阅读全文
posted @ 2019-06-09 20:48 周零开
阅读(51)
评论(0)
推荐(0)
mongodb 基本常用操作
摘要: 服务启动 服务启动 mongod --config /usr/local/etc/mongod.conf 客户端启动 mongo 客户端退出 exit control+C 数据库相关操作 查看当前的数据库:db 查看所有的数据库:show...
阅读全文
posted @ 2019-06-09 10:18 周零开
阅读(18)
评论(0)
推荐(0)
2019年4月27日
【数据结构】排序----希尔排序
摘要: 希尔排序的特性 利用插入排序的简单,同时克服插入排序每次只交换相邻两个元素的缺点 栗子:对下面序列排序 81 94 11 96 12 35 17 95 28 58 41 75 15 5间隔: 每隔5个,对其子序列做插入...
阅读全文
posted @ 2019-04-27 08:47 周零开
阅读(35)
评论(0)
推荐(0)
【数据结构】排序----简单排序(冒泡/插入)
摘要: 只讨论基于比较的排序 只讨论内部排序 稳定性:任意两个相等的数据,排序前后的相对位置不发生改变 没有一种排序是任何情况下都表现最好的 时间复杂度下界: 逆序对:对于下标 i A[ j ] ,则称 ( i , j ) 是一对逆序对(inversion) ...
阅读全文
posted @ 2019-04-27 07:51 周零开
阅读(20)
评论(0)
推荐(0)
2019年4月15日
【数据结构】排序 ----堆排序
摘要: 堆排序使用最大堆,最小堆一般用于优先队列 堆特点 1.parent > children 2.完全二叉树 完全二叉树概念:从上往下,从左往右,结点依次添加 以下都是完全二叉树 parent 结点 > chidren 结点 如图 子结点都小于父结点 pyt...
阅读全文
posted @ 2019-04-15 21:49 周零开
阅读(23)
评论(0)
推荐(0)
2019年4月14日
python多线程(二)
摘要: 线程锁: Lock :原始锁,目前可用的最低级的同步原语 Rlock :可重入锁 class threading.Lock class threading.RLock 实例方法: acquire(blocking=True, timeout=-1) 尝试锁定...
阅读全文
posted @ 2019-04-14 17:18 周零开
阅读(21)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告