import threading class Que_test: def __init__(self): # 创建条件变量和计数器 self.cv = threading.Condition() self.counter = 1 def first(self): with self.cv:
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号