c++调用Python函数并获取
c++调用代码为: PyObject* result= PyObject_CallObject(pFuncHello,pArg); int res=0; PyArg_Parse(result,"i",&res); cout << "result:" << res << endl;其中pArg为Python函数调用参数,先用PyArg_Par