为什么表达式0<0=0在Python中返回false?
def full(self): """Return True if the queue is full, False otherwise (not reliable!).""" self.mutex.acquire() n = 0 < self.maxsize == self._qsize() self.mutex.release() return n
maxsize
0 < 0 == 0
>>> 0 < 0 == 0False>>> (0) < (0 == 0)True>>> (0 < 0) == 0True>>> 0 < (0 == 0)True
幕布斯7119047
当年话下
相关分类