python c扩展模块的方法
注意点和要点:1、python2.x和python3.x的函数形式不一样,一定要注意。比如:Py_InitModule函数是在python2.x中使用的,而python3.x没有这个函数。2、python setup.py build //生成模块3、python setup.py install //生成模块并安装模块举例说明:1、其中 hello.c文件#include <Python.h>static PyObject* helloworld(PyObjec