02 2019 档案

摘要:1、安装、配置sshd。(如果没有) 2、启动sshd。service sshd start 3、防火墙开启22端口,ssh默认端口。 阅读全文
posted @ 2019-02-25 02:29 ★小钻风★ 阅读(390) 评论(0) 推荐(0)
摘要:from multiprocessing import Process,Queue,Pipeimport osdef test(q,child_conn): print("sub q id:%s in the 线程号 %s"% (id(q),os.getpid())) q.put([ "hello" 阅读全文
posted @ 2019-02-21 20:42 ★小钻风★ 阅读(110) 评论(0) 推荐(0)
摘要:# project:pybuilder # author:slx# datetime:2019/2/20 3:19# software: PyCharmimport threadingimport timeevent =threading.Event()class Boss(threading.Th 阅读全文
posted @ 2019-02-20 03:33 ★小钻风★ 阅读(125) 评论(0) 推荐(0)
摘要:import threadingimport time lock =threading.RLock()class Mythread(threading.Thread): def __init__(self,name): super(Mythread,self).__init__() self.nam 阅读全文
posted @ 2019-02-20 00:53 ★小钻风★ 阅读(442) 评论(0) 推荐(0)
摘要:import threadingimport timelockA = threading.Lock()lockB = threading.Lock()class Mythread(threading.Thread): def __init__(self,name): super(Mythread,s 阅读全文
posted @ 2019-02-19 23:34 ★小钻风★ 阅读(158) 评论(0) 推荐(0)