from multiprocessing import Process
import time
def task(name):
print("%s start" % name)
time.sleep(3)
print("%s stop" % name)
主进程与子进程的执行顺序
最新推荐文章于 2022-01-08 16:26:01 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
from multiprocessing import Process
import time
def task(name):
print("%s start" % name)
time.sleep(3)
print("%s stop" % name)