原生的python是用C实现的,因此python可以很容易的实现C/C++的扩展
python和c/c++的互相调用,本质上就是c和c++的互相调用而已。
写c扩展可以用cython或ctypes
写c++扩展可以用boost-python或pybind11或ctypes