使用dnspython时出现以下错误消息。
>>> from dns import resolver
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/dist-packages/dns/resolver.py", line 32, in <module>
import dns.flags
File "/usr/local/lib/python3.4/dist-packages/dns/flags.py", line 51, in <module>
_by_value = dict([(y, x) for x, y in _by_text.iteritems()])
AttributeError: 'dict' object has no attribute 'iteritems'
有人知道如何修复它吗?我正在使用python 3.4。 dnspython的替代品也是受欢迎的答案。