python process使用
2017-07-15 本文已影响0人
Do_More
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()