yyang-ntan

导航

2007年1月4日 #

在c++程序中调用python脚本函数

摘要: 在c++中调用python脚本函数的代码框架如下: 1 Py_Initialize(); //初始化 python interpreter 2 3 PyObject *pName = PyString_FromString("test1"); // python脚本文件名 5 PyObject *pModule = PyImport_Import(pName)... 阅读全文

posted @ 2007-01-04 16:36 永远自由的心 阅读(3205) 评论(0) 推荐(0) 编辑