Python:UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe8 in position 1解决办法

解决方法:

import sys 
reload(sys) 
sys.setdefaultencoding('utf-8')

代码开头加入如上内容,即可!

Last modification:January 10th, 2019 at 06:03 pm
If you think my article is useful to you, please feel free to appreciate

2 comments

  1. xiaoli

    看一看咯

    1. 博主
      @xiaoli

      欢迎!!!!!

Leave a Comment