标签:ESS imp name for 同步 %s family 16px ase
from multiprocessing import Process, Lock
def f(l, i):
l.acquire():
print(‘hello world %s‘%i)
l.release()
if __name__ == ‘__main__‘:
lock = Lock()
for num in range(10):
Process(target=f, args=(lock, num)).start()
标签:ESS imp name for 同步 %s family 16px ase
原文地址:https://www.cnblogs.com/ajaxa/p/9146463.html