python进程的join函数python多进程之join函数
python进程的join函数join让主进程等待子进程结束之后,再执行主进程。举例:from multiprocessing import Processimport timedef task(name): print(f"{name} is running") time.sleep(2) print(f"{name} is gone")if __name__ == "__main__": p = Proces