一、上节课复习 1、 守护进程:如果父进程将子进程设置为守护进程,那么在主进程代码运行完毕后守护进程就立即被回收 2、 互斥锁:用来将并发编程串行,牺牲了效率而保证了数据安全 3、 队列:管道+锁 二、守护进程例子 解决:消费者取空列表后q.get()阻塞的问题 方法一: from multipro ...
分类:
编程语言 时间:
2018-04-26 21:45:37
阅读次数:
213
sql语句代编写、sql 游标 、事务代写1. AimsThis project aims to give you practice in? reading and understanding a moderately large relational schema (MyMyUNSW)? impl ...
分类:
数据库 时间:
2018-04-25 20:03:14
阅读次数:
175
def CirculationList(ReaDinG): for ReaDLine in ReaDinG: ReaDList = ReaDLine.strip("\n").split() print(ReaDList) ##读取数据列表 ReaDing = open("file_1.txt","r... ...
分类:
其他好文 时间:
2018-04-23 21:18:36
阅读次数:
193
Ada the Ladybug lives near an orange tree. Instead of reading books, she investigates the oranges. The oranges on orange tree can be in up to 5*50 Sha ...
分类:
其他好文 时间:
2018-04-23 19:52:26
阅读次数:
167
vsftpd是开源的轻量级的常用ftp服务器. 1,在树莓派上安装vsftpd服务器 (约400KB) sudo apt-get update sudo apt-get install vsftpd #当出现下面这个错误的时候这是更新源的问题,要更改更新源。 (Reading package lis ...
分类:
其他好文 时间:
2018-04-20 23:34:41
阅读次数:
260
f = open('pyehon测试.txt');#py2里可以使用 open 或 file 方法打开文件,py3 只能使用 open。 #不加参数时,open为你默认为'r',reading,只读模式,不能写入且文件必须存在,否则引发异常。 data = f.read();#读取文件中的所有内容 ... ...
分类:
编程语言 时间:
2018-04-18 22:28:58
阅读次数:
229
题目链接:http://acm.csu.edu.cn/csuoj/problemset/problem?pid=2021 Description Everybody loves big numbers (if you do not, you might want to stop reading at ...
分类:
其他好文 时间:
2018-04-18 21:54:29
阅读次数:
163
root@hett-PowerEdge-T30:~# sudo apt-get install redis-server Reading package lists... DoneBuilding dependency tree Reading state information... DoneTh ...
分类:
系统相关 时间:
2018-04-17 16:59:25
阅读次数:
193
(一)Docker介绍 Docker简介 Docker是一个开源项目,诞生于2013年初,最初是dotCloud公司内部的一个业余项目,基于Google公司推出的Go语言实现。Docker项目的目标是实现轻量级的操作系统虚拟化解决方案。Docker的基础是Linux容器(LXC)等技术。在LXC的基 ...
分类:
其他好文 时间:
2018-04-10 17:50:11
阅读次数:
221
在对nginx添加fastCGI的支持后,然后进行php页面验证,发现页面识别不到,不清楚什么情况,随后google了下,原来是Nginx内置变量问题惹的祸。 1、平台介绍: 1 2 3 4 5 6 OS Version: CentOS release 6.4 (Final) Nginx Versi ...
分类:
其他好文 时间:
2018-04-10 13:35:42
阅读次数:
511