在Python2.3之前Python自帶反編譯的工具,高版本的貌似這個反編譯的已經不能用了。
據說是在Python2.7上最好用的反編譯工具uncompyle 代碼地址
http://github.com/gstarnberger/uncompyle
編譯Python 把Python文件編譯為pyc
python -m py_compile file.py
反編譯Python 把pyc反編譯成py
python uncompyler.py -o . file.pyc
查看幫助
python uncompyler.py --help