摘要: 直接上代码#include <iostream>#ifdef WIN32#include "Python.h"#else#include "/usr/local/include/python2.7/Python.h"#endif//如果是在windows-mingw-python2.7环境下,需要在工程->设置->Include和lib设置python2.7的路径,//并在“链接 ”的参数中添加-Lc:\Python27\libs -lpython27//如果是在linux环境下,则用下面命令进行编译链接 //g++ Python 阅读全文
posted @ 2012-07-04 23:19 Geek_Ma 阅读(2162) 评论(0) 推荐(0) 编辑