python3中多线程实例中的while 1: pass
import_threadimporttimedefprint_time(threadName,delay): count=0 whilecount<5: time.sleep(delay) count +=1 print("%s: %s"%(threadName,time.ctime(time.time())))try: _thread.start_new_thread(print_time,("Thr...
原创
2021-12-06 17:38:04 ·
1662 阅读 ·
0 评论