![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python优化初步
文章平均质量分 72
z458375497
这个作者很懒,什么都没留下…
展开
-
实操C++与python的对接
由于python写的算法速度过慢,于是,本人就想通过C/C++改写python算法并内嵌到python里,以便能够为之提速,典型例子有python写的jieba算法。以下讲述的是如何将C++和python对接(引自知乎大神:https://www.zhihu.com/question/23003213/answer/56121859)。大概分为以下四部分: (1) C/C++ 调用 Pyt原创 2018-01-22 22:13:53 · 1208 阅读 · 0 评论 -
用disutils建立C和C++扩展
以下为源网址翻译,翻译的不好还请见谅。源网址:https://docs.python.org/2/extending/building.html#building3. Building C and C++ Extensions with distutils3. 用disutils建立C和C++扩展Starting in Python 1.4, Python provides, on翻译 2018-01-28 14:48:25 · 538 阅读 · 0 评论