标签:int 结束 start port multi pytho 测试 art ESS
import time from multiprocessing import Process def f1(): time.sleep(2) print(‘子进程1号‘) def f2(): time.sleep(3) print(‘子进程2号‘) if __name__ == ‘__main__‘: s = time.time() p = Process(target=f1,) p2 = Process(target=f2,) p.start() p2.start() p.join() p2.join() e = time.time() print(e - s) print(‘主进程结束‘)
标签:int 结束 start port multi pytho 测试 art ESS
原文地址:https://www.cnblogs.com/work14/p/10267088.html