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