我们可以使用 Swig 来开发 Python 模块,详细的介绍可以看下:Python Modules with Swig
我们也可以使用 Cython 来构建 Python 模块。
我们还可以使用 pybind11 来构建 python 模块。
我们也可以使用 Python Library 提供的 C-API 接口直接构建 Python 模块。