SyntaxError: NonASCII character '\xe8' in file Wolrd.py on line 8, but no e

在linux上运行Python文件报这个错误

在文件头部加一句就可以了

# -*- coding: utf-8 -*-
原文地址:https://www.cnblogs.com/shuai666/p/15787606.html