Python 調用C函數
阿新 • • 發佈:2017-06-03
程序 nand test 訪問 sam -s nan shel style
/******************************************************************** * Python 調用C函數 * 說明: * Tony在處理SQL Server數據庫中遇到需要用C來處理數據,看一下Python * 調用C函數相關東西。 * * 2017-6-3 深圳 龍華樟坑村 曾劍鋒 *******************************************************************/ 一、參考文檔: 1. 淺談 Python 程序和 C 程序的整合 https://www.ibm.com/developerworks/cn/linux/l-cn-pythonandc/ 2. PYTHON調用C語言函數 http://coolshell.cn/articles/671.html 3. Python調用C函數的方法以及如何編寫Python的C擴展 http://www.jianshu.com/p/cd28e8b0cce1 4. 用C語言擴展Python的功能 https://www.ibm.com/developerworks/cn/linux/l-pythc/5. 簡單的C擴展模塊 http://python3-cookbook.readthedocs.io/zh_CN/latest/c15/p02_write_simple_c_extension_module.html 6. python-c-extension-sample https://github.com/ZengjfOS/python-c-extension-sample 二、ctypes訪問C代碼: http://python3-cookbook.readthedocs.io/zh_CN/latest/c15/p01_access_ccode_using_ctypes.html#三、模塊訪問C代碼: https://github.com/wusuopu/python-c-extension-sample
Python 調用C函數