import multiprocessing as mp
import threading as td
def job(a,b):
print('job work')
if __name__ == '__main__':
p1 = mp.Process(target=job,args=(1,2))
p1.start()
p1.join()
import multiprocessing as mp
import threading as td
def job(a,b):
print('job work')
if __name__ == '__main__':
p1 = mp.Process(target=job,args=(1,2))
p1.start()
p1.join()
本文标题:python process使用
本文链接:https://www.haomeiwen.com/subject/iaczhxtx.html
网友评论