阅读背景:

如何管理python线程的结果?

来源:互联网 

I am using this code:

我使用的代码是:

def startThreads(arrayofkeywords):
    global i
    i = 0
    while len(arrayofkeywords):
        try:
            if i<maxThreads:
                keyword = arrayofkeywords.pop(0)
                i = i+1
                thread = doStuffWith(keyword)
                thread.start()
        except KeyboardInterrupt:
            sys.exit()
    thread.join()
def startThr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: