本文共 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/