小编Ton*_*ark的帖子

AttributeError:“队列”对象在python 2.7.x中没有属性“ join”

import multiprocessing
q = multiprocessing.Queue() 

def create_jobs():
    for link in file_to_set(QUEUE_FILE):
        q.put(link)
    q.join() **#here i'm getting Attribute Error**
    crawl()
Run Code Online (Sandbox Code Playgroud)

(这不是完整的代码段。但是我的函数仅在此处给出错误。)

python python-multithreading python-2.7

3
推荐指数
1
解决办法
2244
查看次数

标签 统计

python ×1

python-2.7 ×1

python-multithreading ×1