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