http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net
全部博文(214)
发布时间:2011-12-17 13:39:37
#include <iostream>#include <map>#include <sstream>#include <cctype>#include <algorithm>using namespace std;#define Py_INCREF(obj) obj->ob_refcnt++#define Py_DECREF(obj) obj->ob_refcnt--; #define Py_XINCREF(obj) {if obj==NULL ; \ else Py_INCREF(.........【阅读全文】
发布时间:2011-12-07 12:45:36
python的扩展 源文件 #include "Python.h" static char py_gcd_doc[]="Computes the gcd of two integers";static PyObject*py_gcd(PyObject *self,PyObject *args) { int x,y,r; if (!PyArg_ParseTuple(args,".........【阅读全文】