摘要:
import threadingimport timeclass Mythread(threading.Thread): def __init__(self,threadID,name,counter): threading.Thread.__init__(self) self.threadID = 阅读全文
摘要:
import _threadimport time#1 线程函数def print_time(thread_name,delaytime): count = 0; while count < 5: time.sleep(delaytime); count += 1; print("%s %s" % 阅读全文