python提示错误TypeError: 'dict_keys' object does not support indexing
python提示错误TypeError: 'dict_keys' object does not support indexing原因:python2与python3之间的差异python2中形如myTree.keys()[0]这样的写法是没有问题的,因为myTree.keys()返回的是一个list;而在python3中myTree.key()返回的则是dick_keys类型,故而出