Using multiprocessing inside a function

前端 未结 0 700
栀梦
栀梦 2021-01-02 04:00

I want to take the working code from below and put it into a function.

import multiprocessing as mp

def parameters(x,n):
    for i in x:
        yield (i,n)
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题