摘要: <Thread(Thread-1, started 8568)>尝试第1次连接<Thread(Thread-1, started 8568)>尝试第2次连接<Thread(Thread-2, started 9144)>尝试第1次连接正在检查连接<Thread(Thread-1, started 8 阅读全文
posted @ 2018-11-21 22:34 986428528 阅读(157) 评论(0) 推荐(0) 编辑
摘要: # from threading import Thread,Lock,current_thread # import os ,time # def task(): # global n # print('%s is running'%current_thread().getName()) # temp=n # time.sleep(0.5) # n=te... 阅读全文
posted @ 2018-11-21 20:24 986428528 阅读(179) 评论(0) 推荐(0) 编辑
摘要: from threading import Thread import threading import time def say(name): time.sleep(5) print('%s say hello'%name) if __name__=='__main__': t=Thread(target=say,args=('wes',)) t.start()... 阅读全文
posted @ 2018-11-21 18:15 986428528 阅读(119) 评论(0) 推荐(0) 编辑