代码的github链接如下:
https://github.com/AlchemyAPI/alchemyapi-recipes-twitter
运行 recipe.py 时出现以下错误:
Traceback (most recent call last):
File "recipe.py", line 340, in <module>
main(sys.argv[1], int(sys.argv[2]))
File "recipe.py", line 43, in main
print_results()
File "recipe.py", line 303, in print_results
avg_pos_score = mean_results['result'][2]['avgScore']
TypeError: 'CommandCursor' object has no attribute '__getitem__'
我正在使用 python 版本 2.7.6 请帮我解决这个问题。