摘要:
import threadingimport timefrom threading import Lockclass Mythread(threading.Thread):#继承与重写多线程 def __init__(self,num): threading.Thread.__init__(self 阅读全文
摘要:
class Test(object): def __init__(self,a): self.a = a def func1(self): #调用回调函数 return self.func2(self.a,self.calls) def func2(self,aa,func): #执行回调函数 return func... 阅读全文