标签: python parallel-processing multiprocessing pool starmap
我有一个功能,
def noflux(j,i,cells,rfu,lfu,ufu,dfu):
以numpy数组作为输入,我想使用多处理程序包并行运行此函数两次,即
noflux(j,i,cells,rfu,lfu,ufu,dfu): noflux(j,i,cells,rfh,lfh,ufh,dfh):
noflux(j,i,cells,rfu,lfu,ufu,dfu):
noflux(j,i,cells,rfh,lfh,ufh,dfh):
此函数不返回任何内容,而只是对参数进行更改
有没有办法做到这一点?