博客
关于我
module 'queue' has no attribute 'Queue'解决
阅读量:798 次
发布时间:2023-02-09

本文共 160 字,大约阅读时间需要 1 分钟。

import queueq = queue.Queue()q.put('a')q.put('b')print(q.get())错误:AttributeError: module 'queue' has no attribute 'Queue'

解决方法: 

把程序名命名和包名一样导致错误。命名为queue1.py就ok了 

转载地址:http://ebffk.baihongyu.com/

你可能感兴趣的文章
MySQL之2003-Can‘t connect to MySQL server on ‘localhost‘(10038)的解决办法
查看>>
MySQL之CRUD
查看>>
MySQL之DML
查看>>
Mysql之IN 和 Exists 用法
查看>>
MYSQL之REPLACE INTO和INSERT … ON DUPLICATE KEY UPDATE用法
查看>>
MySQL之SQL语句优化步骤
查看>>
MYSQL之union和order by分析([Err] 1221 - Incorrect usage of UNION and ORDER BY)
查看>>
Mysql之主从复制
查看>>
MySQL之函数
查看>>