Answers for "python spawn process"

0

python spawn process

from multiprocessing import Process

def f(name):
    print('hello', name)

if __name__ == '__main__':
    p = Process(target=f, args=('bob',))
    p.start()
    p.join()
Posted by: Guest on March-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language