python-cython
时间: 2023-10-15 16:06:06 浏览: 110
python
Python-Cython是一种使Python代码能够编译成C语言扩展的工具库。它包括Cython源码以及Python2.7/Lib/site-package下的cython.py文件。 Cython是基于Pyrex的,但是相比Pyrex,Cython拥有更多的功能和优化。Cython语言与Python语言非常相似,但是还支持调用C函数以及在变量和类属性上声明C类型,这使得Python代码能够以接近原生C语言的速度运行。使用Python-Cython,我们可以将Python代码转化为C语言扩展,从而提高代码的执行效率。使用Python-Cython时,可以在sys.path的头部添加cython_path,以防止Python site-package中的Cython对我们独立出来的Cython模块造成影响。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [python---之cython](https://blog.csdn.net/zxyhhjs2017/article/details/80580585)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [python-cython:https](https://download.csdn.net/download/weixin_42134144/16268191)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文