摘要: import threadingimport timeclass Mythread(threading.Thread): def __init__(self,threadID,name,counter): threading.Thread.__init__(self) self.threadID = 阅读全文
posted @ 2017-11-28 15:01 喻晓生 阅读(3088) 评论(0) 推荐(0) 编辑
摘要: import _threadimport time#1 线程函数def print_time(thread_name,delaytime): count = 0; while count < 5: time.sleep(delaytime); count += 1; print("%s %s" % 阅读全文
posted @ 2017-11-28 10:34 喻晓生 阅读(285) 评论(0) 推荐(0) 编辑