119

打通Python和C++ | 一根笨茄子

 6 years ago
source link: http://blog.guoyb.com/2017/11/05/boost-python/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Python作为世界上最好的胶水语言(哼,世界上最好的语言当然是PHP==),利用Python的简洁和C++的高效,基本可以解决99%的问题了吧~ 一般的,Python和C++的交互分为这两种情况: 用C++扩展Python:当一个Python项目中出现了性能瓶颈时,将瓶颈部分抽离出来,用C++封装成一个Python可以调用的模块(so库); 将Python内嵌入C++:当一个C+

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK