114 总字数
1分钟 预计时间
发布 2021-03-30
更新于 2021-05-14

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

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

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

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

而from concurrent.futures.thread import ThreadPoolExecutor 中

 pool.submit(sava_to_el, data, id)

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