从 exe 恢复 Python 源代码
我编写了一个 python 程序,使用 py2exe 将其转换为 exe 二进制文件。我在 dist 文件夹中生成了所有文件,但由于系统崩溃,我丢失了源代码。
有没有办法从 .exe 或 py2exe 生成的其他支持文件中获取 .py 源代码文件?
I had a python program written which I converted to an exe binary using py2exe. I have all of the files generated in the dist folder but due to a system crash, I lost the source code.
Is there a way to get the .py source code file back from .exe or other supporting files generated by py2exe?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据以下链接,您可以从
library.zip
中提取您的.pyc
文件,然后使用decomppyle获得类似于以下内容的.py
文件你开始于。http://bytes.com/topic/python /answers/101743-py2exe-there-way-go-backwards-exe2py
http://sourceforge.net/projects/decompyle/
希望它能起作用,我希望你下次使用 github 或 bitbucket。
According to the following links, you can extract your
.pyc
files fromlibrary.zip
and then use decompyle to obtain.py
files similar to what you started with.http://bytes.com/topic/python/answers/101743-py2exe-there-way-go-backwards-exe2py
http://sourceforge.net/projects/decompyle/
Hope it works, and I hope you use github or bitbucket next time.