我正在尝试将python文件转换为可执行文件.到现在为止还挺好.但是当我尝试运行可执行文件时,我收到以下错误消息:
SyntaxError: Non-ASCII character '\x90' in file hello.exe on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details"
Run Code Online (Sandbox Code Playgroud)
这个问题被广泛记录,但使用给定的添加解决方案
#-*- coding: utf-8 -*-
Run Code Online (Sandbox Code Playgroud)
在行的开头并没有解决我的问题.
我正在使用Notepad ++编辑器,甚至明确强制执行utf-8编码,但无济于事.
有什么我想念的吗?