我正在尝试为 twitter 实例化 api。它仍然给我同样的错误。
>>> import twitter
>>> api = twitter.Api(consumer_key='vzpF0LKea5c6DECWLnoINQ',
consumer_secret='3rzfmW2X7bMCmY7wkOMQaIBrzRz0jTzeJnGm0r5D2c',
access_token_key='1517563807-75iFGXWHxMvzzsqrIs5W4tCb4OwFG4eisnDYRst',
access_token_secret='uLhhITppA9CDPyAiP7pkSgJMh45FL3X3F1jiwBBoI')
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
api = twitter.Api(consumer_key='vzpF0LKea5c6DECWLnoINQ',
AttributeError: 'module' object has no attribute 'Api'
怎么了?