yanbolan
文章282
標籤199
類別26
python3 thread not working  坑

python3 thread not working 坑


多线程不报错,
多进程不报错

A
B
C(A,B)
A,B写在上面

_thread ()函数线程,要使用,tuple 再加个==逗号==!!

1
_thread.start_new_thread(sava_to_el, (data, job_id,))

而from concurrent.futures.thread import ThreadPoolExecutor 中

1
pool.submit(sava_to_el, data, id)

不要tuple 。。。。。。。。。。。。不要括号民
不报错。。。。。

博主:yanbolan
文章連結:https://yuris.site/2021/03_30_1e98952d.html
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可
×