.pyc文件的编译与反编译

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Blood_Seeker/article/details/81702895

编译 python 为 .pyc 文件:
import py_compile
pycompile.compile(filename)

反编译 .pyc 文件:
pip install uncompyle2
命令行执行:uncompyle6 filename.pyc

猜你喜欢

转载自blog.csdn.net/Blood_Seeker/article/details/81702895