如何在不弹出内容的情况下打印队列字典?我有这样的事情:
>>> mac = '\x04\xab\x4d'
>>> mydict = {}
>>> if mac in mydict.keys():
... mydict[mac].append("test")
... else:
... mydict[mac]=[]
... mydict[mac].append("test")
...
>>>
>>> for key,val in mydict.Items():
... print key
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'dict' object has no attribute 'Items'
>>> for key,val in mydict.Item():
... print key
并且想知道如何显示字典的内容...
谢谢!罗恩