标签:
简单示例代码:
import threading class MyThread(threading.Thread): def __init__(self,num): super(MyThread,self).__init__() self.num = num def run(self): print(self.num) mt = MyThread(3) mt.start()
自定义线程类
原文地址:http://www.cnblogs.com/owasp/p/5597253.html