下面代码自定义了线程类 m y_thread ,请将程序填写完整。 import time, threading class my_thread( ): def __init__(self, x): threading.Thread. (self) self.x = x def run(self): print("%s 线程正在运行! " % \ threading.current_thread().name) time.sleep(self.x) print("%s 线程运行结束! " % threading.current_thread().name)