使用 pyinstaller 将 Exe 转换为 python?

Man*_*ius 7 executable pyinstaller python-3.x

所以我犯了一个巨大的错误并删除了我的代码文件(python)。我唯一拥有的是我用 pyinstaller 创建的作为 .exe 的 python 文件。有没有办法扭转这一点并从 .exe 中提取我的代码文件?

Zen*_*dix 8

您可以.exe使用PyInstaller Extractor 提取文件的内容。像这样运行它:

python pyinstxtractor.py executable.exe
Run Code Online (Sandbox Code Playgroud)

然后你会得到一堆文件,包括你的原始 python 文件。

  • 抱歉,对于我的打扰,实际上,我使用 pyinstxtractor.py 提取了 .exe,并且提取了 foler。那么你的意思是这个文件夹包含一些 *.py 文件吗?我希望你能回复我。问候。 (2认同)
  • 嗨,@Mantas Kandratavicius 和 Zenadix。不幸的是,我提取的文件夹没有 python 文件(.py 文件)。你能解释一下我现在应该怎么做吗?问候! (2认同)