赞
踩
import os, sys
from multiprocessing import Process
def func(id):
print(id)
if __name__ == '__main__':
pro_list = []
for i in range(1024):
p = Process(target=func, args=(i,))
p.start()
pro_list.append(p)
for p in pro_list:
p.join()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。