Is it possible to decompile a compiled .pyc file into a .py file?
问题 Is it possible to get some information out of the .pyc file that is generated from a .py file? 回答1: Uncompyle6 works for Python 3.x and 2.7 - recommended option as it's most recent tool, aiming to unify earlier forks and focusing on automated testing. The GitHub page has more details. The older Uncompyle2 supports Python 2.7 only. This worked well for me some time ago to decompile the .pyc bytecode into .py, whereas unpyclib crashed with an exception. 回答2: Yes, you can get it with unpyclib