GTX_AI 发表于 2019-5-17 23:01:22

py_compile(将py文件转换为pyc文件)

py_compile(将py文件转换为pyc文件):
加密文件
import py_compile
cmd:python -m py_compile main.py
import py_compile
py_compile.compile(r'getGPUinfo.py')#py文件完整的路径.
反编译的话:
pip install uncompyle
uncompyle6 unet.cpython-37.pyc

参考:https://www.cnblogs.com/dengyg200891/p/5074481.html











页: [1]
查看完整版本: py_compile(将py文件转换为pyc文件)