import threading
import time
class My_threading(threading.Thread):
def __init__(self,name,num):
super().__init__()
self.name = name
self.num = num
def run(self):
time.sleep(3)
print(self.name,self.num)
要写 super().__init__() 要不然会报错