【已解决】How to fix: “UnicodeDecodeError: ‘ascii’ codec can’t decode byte”

参考:https://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decode-byte

# encoding=utf8  
import sys  

reload(sys)  
sys.setdefaultencoding('utf8')

 

文章的脚注信息由WordPress的wp-posturl插件自动生成



|2|left
打赏

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: