Python 與 C 擴充 (以C 或C++ 擴充Python,Extending Python with C or C++)
如何讓 Python 與 C 或 C++ 互通呢?
環境
windows 11 64bit
Visual Studio 2022
python 3.12.2 64bit
1. Python 與 C 擴充 -簡單函式
https://husking-studio.com/extending-python-with-c-simple-function
2. Python 與 C 擴充 -C++類別
https://husking-studio.com/extending-python-with-c-class
3. Python 與 C 擴充 -透過 C++ 執行檔的各種處理
https://husking-studio.com/extending-python-with-c-execution
4. Python 與 C 擴充 -將 C++ 指標傳去給 python
https://husking-studio.com/extending-python-with-c-pointer
小哈的感想:「Python 與 C 擴充」這部分的內容,完全是為了滿足我個人的研究慾,花了非常非常長的時間,但我還是覺得,如果真的想要在 C 或 C++ 裡放一個 script 的話,建議還是用 lua 就好了。
Extending Python with C or C++
python C API
python 與 C 的相互呼叫
python 與 C 擴充
python 與 C++ 擴充
如何讓 python 使用 C 的函式庫
C++ python
以C 或C++ 擴充Python
https://docs.python.org/zh-tw/3/extending/extending.html