Python出现"SyntaxError: Non-ASCII character '\xe6' in file"错误解决方法

231 阅读1分钟

错误:

解决:第一行加上

# encoding: utf-8