print(str(procnum) + ' represent!')
return_dict[procnum] = procnum
if __name__ == '__main__':
    manager = Manager()
return_dict = manager.dict()
jobs = []
for i in range(5):
    p = multiprocessing.Process(target=worker, args=(i, return_dict))
jobs.append(p)
p.start()
for proc in jobs:
    proc.join()
print(list(return_dict.values()))
How can I recover the return value of a function passed to multiprocessing.Process?