摘要:
<Thread(Thread-1, started 8568)>尝试第1次连接<Thread(Thread-1, started 8568)>尝试第2次连接<Thread(Thread-2, started 9144)>尝试第1次连接正在检查连接<Thread(Thread-1, started 8 阅读全文
摘要:
# 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... 阅读全文
摘要:
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()... 阅读全文