多处理python-cod

2024-10-08 18:24:58 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试并行化python代码时,我得到一个断言错误。代码如下:

check = Parallel(n_jobs=ncpu)(delayed(removeident)(h) for h in splitframe)

单独地,splitframe中的每个元素(h)与函数removeint配合良好,即removeident(h)产生预期结果。在

控制台上显示错误消息:

^{pr2}$

有什么问题吗?在


Tags: 函数代码in元素forparallelcheck错误

热门问题