首页 > 技术文章 > UnicodeDecodeError: 'utf8' codec can't decode byte 0xc4 in position 0: i报错

theWinter 2018-02-01 21:38 原文

在程序的顶部加了下面两行就好了,中文也可以正常显示了

#!/usr/bin/env Python
# coding=utf-8

推荐阅读