本文介绍了反编译 Python 2.7 .pyc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我上下搜索过,但找不到适用于 Python 2.7 .pyc 的反编译器.有人知道一种适用于 Python 2.7 的吗?谢谢

I've searched up and down, but can't find a de-compiler that will work for Python 2.7 .pyc. Does anybody know of one that will work for Python 2.7? Thanks

推荐答案

UPDATE (2019-04-22) - 听起来你想使用 uncompyle6 而不是我最初提到的答案.

UPDATE (2019-04-22) - It sounds like you want to use uncompyle6 nowadays rather than the answers I had mentioned originally.

这听起来很有效:http://code.google.com/p/unpyc/

问题 8 表示它支持 2.7:http://code.google.com/p/unpyc/updates/list

Issue 8 says it supports 2.7: http://code.google.com/p/unpyc/updates/list

更新 (2013-09-03) - 正如评论和其他答案中所述,您应该查看 https://github.com/wibiti/uncompyle2https://github.com/gstarnberger/uncompyle 而不是 unpyc.

UPDATE (2013-09-03) - As noted in the comments and in other answers, you should look at https://github.com/wibiti/uncompyle2 or https://github.com/gstarnberger/uncompyle instead of unpyc.

这篇关于反编译 Python 2.7 .pyc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 06:56