Loading

摘要: python调用C程序 依赖于python的cytpes模块,C/C++将程序编译成dll动态库,使用ctypes.CDLL函数加载动态库,然后可以在python文件中条用dll中的函数。 在windows环境下,以简单的两数相加函数为例: # sum.c int sum(int a, int b) 阅读全文
posted @ 2024-07-22 02:01 songlh424 阅读(150) 评论(0) 推荐(0)