pybind11
蓝鲸123
做更好的自己
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python 扩展c extention
首先我们会使用PyMODINIT_FUNC 和PyMethodDef 进行创建c的扩展。关于PyMethodDef可以的参数含义可以在官网查看第一步// 简单的say hello 函数static PyObject* say_hello(PyObject* self, PyObject* args) { const char* name; if (!PyArg_ParseTuple(args, "s", &name)) return NULL; pr原创 2020-05-25 20:40:29 · 635 阅读 · 1 评论 -
pybind11
pybind11 github 地址:https://github.com/pybind/pybind11cmake 编译:原创 2020-05-18 16:07:11 · 481 阅读 · 0 评论
分享