python 使用C++ 动态库函数

  主要讲解: python 下 掉用C++ 函数的一些知识点。

 包括,传地址、结构体定义,枚举定义等。

参考链接:

[1] _byref() argument must be a ctypes instance, 

[2] 最全ctypes用法总结_

[3] How to use C enum in Python CTypes? - Python

[4]https://v4.chriskrycho.com/2015/ctypes-structures-and-dll-exports.html

[5] https://stackoverflow.com/questions/1546355/using-enums-in-ctypes-structure

猜你喜欢

转载自blog.csdn.net/ljh618625/article/details/107139707