最近在学习Python ,在github 上找了个用Python 发微博的项目,发送中文时会报错 在发送前添加如下代码: import sys reload(sys) sys.setdefaultencoding('utf-8')