1 'dict' object has no attribute 'has_key' 解决办法 总结: if dict.has_key(key1): 改为: if key1 in adict: 2 Getting a map() to return a list in Python 3.x