摘要:
在使用thread的时候,定义如下类:class newThread(threading.Thread): def __init__(self, threadID, name, counter): threading.Thread.__init__(self) self.threadID = threadID self.name = name self.counter = counter注意:"If the subclass overrides the constructor, it must make sure to invoke the base class constructo 阅读全文