python报错

编码错误:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 29: ordinal not in range(128)

  解决:

  import sys

  reload(sys)
  sys.setdefaultencoding('GBK')

转载于:https://www.cnblogs.com/xiaolangjun/p/7278756.html

你可能感兴趣的:(python报错)