SyntaxError: Non-UTF-8 code starting with '\xd5' in file ex35.py on line 5, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
遇到此情况,加一段代码: # coding = GBK
在pycharm中 是因为File-- settings --File Encodings 中设置编码格式为utf-8
SyntaxError: Non-UTF-8 code starting with '\xd5' in file ex35.py on line 5, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
遇到此情况,加一段代码: # coding = GBK
在pycharm中 是因为File-- settings --File Encodings 中设置编码格式为utf-8