python
文章平均质量分 76
JimmyU1
Work Twice as hard as others.
展开
-
python使用ctypes调用C/C++
python使用ctypes调用C/C++1. ctpes介绍ctypes is a foreign function library for Python. It provides C compatible data types, and allows calling functions in DLLs or shared libraries. It can be used to wrap the原创 2017-07-19 22:23:18 · 5931 阅读 · 3 评论 -
使用python向C语言的链接库传递数组、结构体、指针类型的数据
使用python向C语言的链接库传递数组、结构体、指针类型的数据由于最近的项目频繁使用python调用同事的C语言代码,在调用过程中踩了很多坑,一点一点写出来供大家参考,我们仍然是使用ctypes来调用C语言的代码库。 至于如何调用基础数据类型的数据,请大家参考我的另外一篇文章:python使用ctypes调用C/C++1. 使用python给C语言函数传递数组类型的参数想必很多时候,C语言会使用原创 2017-08-04 17:11:36 · 17716 阅读 · 3 评论