摘要: import threadingimport timefrom threading import Lockclass Mythread(threading.Thread):#继承与重写多线程 def __init__(self,num): threading.Thread.__init__(self 阅读全文
posted @ 2018-05-02 12:43 盈波秋水泛清涛 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-05-02 11:50 盈波秋水泛清涛 阅读(114) 评论(0) 推荐(0) 编辑