A binary search tree is uniquely determined by a given ordered insertions of a sequence of positive integers. On the other hand, a given binary search ...
分类:
其他好文 时间:
2020-02-07 10:53:55
阅读次数:
85
我这边centos安装mongodb启动报错,有mongo版本,是因为删除了配置文件“/etc/mongod.conf” 解决办法:把 /etc/mongod.conf_bak复制到 /etc/mongod.conf cp /etc/mongod.conf_bak /etc/mongod.conf ...
分类:
其他好文 时间:
2020-02-06 16:26:23
阅读次数:
133
Springboot入门当然要用它写一个hello world,这也是我们广大程序员的传统艺能. 首先打开idea ultimate,不要用idea的社区版,社区办没办法使用springboot的插件,需要安装Spring Assistant才行,或者使用maven去建springboot工程. 回 ...
分类:
编程语言 时间:
2020-02-06 16:23:48
阅读次数:
90
原文:Linux下查看Nginx安装目录、版本号信息? Linux环境下,怎么确定Nginx是以那个config文件启动的? 输入命令行: ps -ef | grep nginx 摁回车,将出现如下图片: master process 后面的就是 nginx的目录。 怎么查看服务器上安装的nginx... ...
分类:
系统相关 时间:
2020-02-06 14:13:32
阅读次数:
100
1。在middlewares中添加自己的新类: class Mylei(object): def process_request(self,request,spider): referer=request.url if referer: request.headers["referer"] = re ...
分类:
其他好文 时间:
2020-02-06 12:46:24
阅读次数:
524
并发编程之进程与线程 2.1 线程与进程 2.1.1 进程 2.1.2 线程 2.1.3 二者对比 2.2 并行与并发 2.3 应用 2.1 线程与进程 2.1.1 进程 程序指令和数据组成,但这些指令要运行,数据要读写,就必须将指令加载至CPU,数据加载至内存。在指令运行过程中还需要用到磁盘、网络 ...
分类:
编程语言 时间:
2020-02-06 12:24:53
阅读次数:
70
'''1. os.system() 阻塞式调用 import osos.system("mspaint")print("after call") ret=os.system("dir sdfdsf") 返回的是退出码print(ret)''''''2. subprocess 阻塞式调用目的:1. 获 ...
分类:
其他好文 时间:
2020-02-05 23:33:51
阅读次数:
75
nohup ./filename.sh > filename.log 2>&1 & ...
分类:
系统相关 时间:
2020-02-05 20:34:29
阅读次数:
126
简介 IPO是指结构化设计中变换型结构的输入(Input)、加工(Processing)、输出(Output)。IPO图是对每个模块进行概要设计的工具,它是输入加工输出(INPUT PROCESS OUTPUT)图的简称,它是由美国IBM公司发起并完善起来的一种工具。在系统的模块结构图形成过程中,产 ...
分类:
其他好文 时间:
2020-02-05 20:09:18
阅读次数:
324
今天安装python2和python3遇到的 为了能够同时使用Python2和Python3, 我将对应目录下的Python执行文件改成了Python2和Python3, 这样能够同时使用Python2和Python3, 但在使用pip2和pip3进行库安装是出现了这个错误:Fatal error ...
分类:
编程语言 时间:
2020-02-05 13:55:31
阅读次数:
67