示例程序:
int main(int argc, char *argv[])
{ PyObject *pName, *pModule, *pDict, *pFunc, *pValue, *pArgs,*pXVec,*c, *xarr1; int i; float fArray[5] = { 0,1,2,3,4}; npy_intp m[1] = { 5};// Initialize the Python Interpreter Py_Initialize(); PySys_SetArgv(argc, argv); <