from multiprocessing import Process
import time
def task(name):
print("%s start" % name)
time.sleep(3)
print("%s stop" % name)
主进程与子进程的执行顺序
最新推荐文章于 2024-03-15 12:55:55 发布
from multiprocessing import Process
import time
def task(name):
print("%s start" % name)
time.sleep(3)
print("%s stop" % name)