📜  多处理连接python代码示例

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

代码示例1
from multiprocessing import Process

def say_hello(name='world'):
    print "Hello, %s" % name

p = Process(target=say_hello)
p.start()
p.join()    # Tells the program to wait until p has finished it's job before exiting