import threading class mythread(threading.Thread): def __init__(self): super(mythread,self).__init__() self.l=threading.Lock() def run(self): self.l.acquire() #这个锁能锁其他线程吗?
37,721
社区成员
34,239
社区内容
加载中
试试用AI创作助手写篇文章吧