[英]Is there any way to call C++ function from Python?
I'm new to Python. 我是Python的新手。 Is there a way to use C++ libraries while coding in Python?
有没有一种方法可以在使用Python编码时使用C ++库?
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 . 另外,您可以使用各种c ++之一在其中用python包装库,例如swig或boost.python 。 Depending on the complexity and "size" of the c++ library, this might be the more efficient solution.
根据c ++库的复杂性和“大小”,这可能是更有效的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.