摘要:
输入结果 阅读全文
摘要:
``` import time import threading num = 0 #定义一个全局变量 tolock = threading.Lock() # 创建一把锁 class Mythread(threading.Thread): #继承threading模块的Thread方法 def run(self): #对父类重写 global num #声名修改全局变量 aa=tolock.acqu 阅读全文