python3 多进程
2021-03-08 23:30
标签:control rgb end col called append UNC obs main code python3 多进程 标签:control rgb end col called append UNC obs main 原文地址:https://www.cnblogs.com/sea-stream/p/14192598.htmlimport multiprocessing
def foo(i):
print (‘called function in process: %s‘ %i)
return
if __name__ == ‘__main__‘:
Process_jobs = []
for i in range(5):
p = multiprocessing.Process(target=foo, args=(i,))
Process_jobs.append(p)
p.start()
p.join()
上一篇:python3 多线程,线程锁
下一篇:python中zip的用法