if __name__ == '__main__':
function_list = [Lee, Marlon, Allen, Frank]
print("parent process %s" % (os.getpid()))
pool = multiprocessing.Pool(4)
for func in function_list:
pool.apply_async(func)
print('Waiting for all subprocesses done...')
pool.close()
pool.join()
print('All subprocesses done.')
怎么弄的运行不了作者: longcpu 时间: 2022-1-7 16:28
错误代码为:
PyPrint:Traceback (most recent call last):
PyPrint: File "<string>", line 2, in <module>
PyPrint: File "<frozen zipimport>", line 259, in load_module
PyPrint: File "F:\PTEST\调用PY38\_int\调用PY38\debug\x64\linker\Python3_9.zip\multiprocessing\__init__.py", line 16, in <module>
PyPrint: File "<frozen zipimport>", line 259, in load_module
PyPrint: File "F:\PTEST\调用PY38\_int\调用PY38\debug\x64\linker\Python3_9.zip\multiprocessing\context.py", line 6, in <module>
PyPrint: File "<frozen zipimport>", line 259, in load_module
PyPrint: File "F:\PTEST\调用PY38\_int\调用PY38\debug\x64\linker\Python3_9.zip\multiprocessing\reduction.py", line 16, in <module>
PyPrint: File "<frozen zipimport>", line 259, in load_module
PyPrint: File "F:\PTEST\调用PY38\_int\调用PY38\debug\x64\linker\Python3_9.zip\socket.py", line 51, in <module>
PyPrint:ModuleNotFoundError: No module named '_socket' 作者: play 时间: 2022-3-3 11:53
QQ多少?我帮你作者: ticpro 时间: 2022-3-10 17:44
老哥,你解决了吗,请问你用过docxtpl库吗,我用了,ImportError: cannot import name 'etree' from 'lxml'。。。。心态炸裂