Python多线程多进程池
Python多线程多进程池from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor #线程池,进程池import threading,time def test(i): print(i,threading.current_thread().name) time.sleep(1) if __name__ == "__main__": thread_pool = ThreadPoolExecut
原创
2020-07-24 10:39:59 ·
75 阅读 ·
0 评论