![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程
qestion_yz_10086
这个作者很懒,什么都没留下…
展开
-
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 评论 -
python--多线程加载数据
python–多线程加载数据from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor # 线程池,进程池import threading, timeimport osimport pandas as pdfrom queue import Queuedef test(arg1,q): data=pd.read_excel(arg1,sheet_name='sheet2') # print(arg原创 2020-07-20 14:51:44 · 693 阅读 · 0 评论 -
多线程
多线程import numpy as npimport timeimport mathimport pandas as pdimport osimport copyimport threadingfrom threading import Lock# from concurrent.futures import ThreadPoolExecutor,as_completedc...原创 2020-03-23 13:26:14 · 131 阅读 · 0 评论