import time from multiprocessing import Process def f1(i): time.sleep(3) print(i) if __name__ == '__main__': for i in range(20): p1 = Process(target=f1,args=(i,)) p1.start()
posted on 2019-01-08 15:17 =.=== 阅读(138) 评论(0) 编辑 收藏 举报