
Python-C扩展
Jelolu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用vs2008实现C语言对Python2的扩展
1.C代码#include #include #include #include"python.h" int fac(int n) { if(n<2) return 1; return (n)*fac(n-1); } static PyObject * Extest_fac(PyObject *self,PyObject *args) { int num; //fac()的参数转载 2014-10-21 10:50:28 · 979 阅读 · 0 评论 -
Python的C扩展
int PyArg_ParseTuple(PyObject *args,const char *format,...)转载 2014-10-11 11:36:16 · 654 阅读 · 0 评论 -
使用vs2008实现C语言对Python3的扩展
1.C代码 #include #include #include #include"python.h" int fac(int n) { if(n<2) return 1; return (n)*fac(n-1); } static PyObject * Extest_fac(PyObject *self,PyObject *args) { int num; //fac()的参数转载 2014-10-13 11:29:56 · 1733 阅读 · 0 评论