📜  python spawn 过程 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:48.478000             🧑  作者: Mango

代码示例1
from multiprocessing import Process

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

if __name__ == '__main__':
    p = Process(target=f, args=('bob',))
    p.start()
    p.join()