code
import threading R=threading.Lock() R.acquire() ‘‘‘ 对公共数据的操作 ‘‘‘ R.release()
线程锁
原文:https://www.cnblogs.com/sea-stream/p/14192543.html