UnicodeDecodeError: 'utf8' codec can't decode byte 0xc4 in position 0: i报错 在程序的顶部加了下面两行就好了,中文也可以正常显示了 #!/usr/bin/env Python# coding=utf-8