简体   繁体   中英

Is there any way to call C++ function from Python?

I'm new to Python. Is there a way to use C++ libraries while coding in Python?

What technique should be used to perform this task?

您可以参考此文档链接以获取有关如何从Python调用C ++函数的详细信息。

In addition, you can use one the various c++ to python wrapping libraries out there, like swig or boost.python . Depending on the complexity and "size" of the c++ library, this might be the more efficient solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM