Python代码转化成so文件:
先安装python包文件:
pip3 install cython
编写加密脚本:
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules = cythonize(["python文件"]))
运行脚本:
python setup.py build_ext
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------