import threading
mutex = threading.Lock()
num = 0
def test1(temp):
global num
mutex.acquire()
for i in range(temp):
mutex python
最新推荐文章于 2024-02-12 11:23:26 发布
import threading
mutex = threading.Lock()
num = 0
def test1(temp):
global num
mutex.acquire()
for i in range(temp):