fromthreadingimportThread
importtime
class MyThread(Thread) :
def __init__(self, a,b,c) :
self.a = a# 有几个参数,这里就写几行
self.b = b
self.c = c
.......
super(MyThread, self).__init__()#调用父类的构造方法
fromthreadingimportThread
importtime
class MyThread(Thread) :
def __init__(self, a,b,c) :
self.a = a# 有几个参数,这里就写几行
self.b = b
self.c = c
.......
super(MyThread, self).__init__()#调用父类的构造方法