![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程
DokcelyNg
技术改变未来
展开
-
学习Python线程池
学习Python线程池 from concurrent.futures import ThreadPoolExecutor,as_completed import time def test1(num): lit1 = [] for i in range(num): time.sleep(3) lit1.append(i) return l...原创 2020-03-21 15:38:56 · 207 阅读 · 0 评论 -
Python多线程获取返回值
Python多线程获取返回值 import threading, time # MyThread.py线程类 class MyThread(threading.Thread): def __init__(self, func, args=()): super(MyThread, self).__init__() self.func = func ...原创 2020-03-10 14:00:01 · 195 阅读 · 0 评论