Import C++ function into Python program

后端 未结 5 853
情书的邮戳
情书的邮戳 2020-12-04 21:59

I\'m experimenting with python functions right now. I\'ve found a way to import python functions into c/c++ code, but not the other way around.

I have a c++ program

5条回答
  •  情深已故
    2020-12-04 22:33

    You want to extend python with a C/C++ module. The following Python documentation is a good place to start reading: http://docs.python.org/extending/extending.html

提交回复
热议问题