python代码中或者注释中存在中文字符出现SyntaxError: Non-UTF-8 code starting with '\xcd' in file K:/PycharmProjects/code/tools/getExcelData.py on line
6, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details这个问题时,可以尝试在代码第一行添加:
2024-03-22 13:46:04
python代码中或者注释中存在中文字符出现SyntaxError: Non-UTF-8 code starting with '\xcd' in file K:/PycharmProjects/code/tools/getExcelData.py on line
6, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details这个问题时,可以尝试在代码第一行添加: