from multiprocessing import Pool
def some_func2(num):
print(num)
return
def some_func(num):
some_list = [1,2,3,4]
some_list.append(num)
p2 = Pool(processes=2)
p2.map(some_func2, some_list)
return
if __name__ == '__main__':
some_list = [1,2,3,4,5]
p = Pool(processes=2)
p.map(some_func, some_list)