Unicode编码错误(python)

时间:2016-05-06 08:06:29

标签: python

我收到以下pythonerror -

Unicode Encode Error charmap codec cannot encode character '\u2026' in position 143 character maps to <undefined> 

Follwing是代码

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模块,该模块与我的代码所在的目录不同

0 个答案:

没有答案