摘要: 在使用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 阅读全文
posted @ 2012-07-23 21:46 小楼 阅读(2283) 评论(0) 推荐(0) 编辑