我得到以下Python错误-
Unicode Encode Error charmap codec cannot encode character '\u2026' in position 143 character maps to <undefined>
from twython import Twython
consumer_key
consumer_secret
access_key
access_sceret
t=Twython(app_key=consumer_key,app_secret=consumer_secret,oauth_token=access_key,oauth_token_secret=access_sceret)
search = t.search(q='#tiago',count=100)
tweets = search['statuses']
for tweet in tweets:
print (tweet['id_str'], '\n', tweet['text'], '\n\n\n')
**我使用命令-python setup.py install
解压目录中的Twython模块,该目录与我的代码所在的目录不同
目前没有回答
相关问题 更多 >
编程相关推荐