我还使用了大型的python3代码库,只要我能够实现acquire和release方法,我们就可以插入不同的锁定软件。def lock(arg0, arg1): # This section of code corresponds to `acquire# Acquire a lock called 'lock', and then ...with third.party.
condition.acquire(threading.Condition())类似于lock.acquire(threading.Lock)。两个人都有权访问锁吗。我可以使用condition.wait,notify with lock.acquire吗,或者我必须使用condition.wait,notify with condition.acquire。cond.acquire() // can i replace with lock.acquire
今天我查看了另一个人的代码,并看到了以下内容: # Omitted bulk of irrelevant code in the class
self.uid = str(uid)
def get(cls, uid): # Also Omitted lots of code here如果我让其他一些类继承了这个A类,将它称为C,当调用这个g