在程序的顶部加了下面两行就好了,中文也可以正常显示了 #!/usr/bin/env Python# coding=utf-8 转载于:https://www.cnblogs.com/theWinter/p/8401395.html