摘要:
import threading import time # 通过函数方法创建多线程 def run(n): print('%s 线程开始了' % threading.current_thread().name) time.sleep(n) print('%s 线程结束了' % threading. 阅读全文
摘要:
import threading import time # 通过函数方法创建多线程 def run(n): print('%s 线程开始了' % threading.current_thread().name) time.sleep(n) print('%s 线程结束了' % threading. 阅读全文
|