Python 线程池-CSDN博客

网站介绍:文章浏览阅读1.2k次。– Start我们使用 ThreadPoolExecutor 定义线程池。任务没有返回值import threadingimport timefrom concurrent.futures import ThreadPoolExecutordef my_task(): for i in range(3): print(f'{threading.current...