1
2
3
4
5
6
7
8
9
10
11
12
禁止生成pyc文件
import sys
sys.dont_write_bytecode = True


python
pip3 install Cython
cythonize -i compute.py
编译的so文件可以直接引入

__init__.py

https://segmentfault.com/a/1190000021660914?utm_source=tag-newest

https://github.com/rocky/python-uncompyle6/