执行python文件报错:
File "E:/Program Files (x86)/PyCharm 2021.1/fmz_zp/Python/基础/test.py", line 531
SyntaxError: Non-UTF-8 code starting with '\xe4' in file E:/Program Files (x86)/PyCharm 2021.1/fmz_zp/Python/基础/test.py on line 531, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
解决方法:
在文件第一行增加:
# -*- coding: utf-8 -*-标签:Files,fmz,python,汇总,问题,Python,Program,zp From: https://www.cnblogs.com/zhengp/p/17722428.html