# cython **Repository Path**: zoujinhang/cython ## Basic Information - **Project Name**: cython - **Description**: 学习用 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-16 - **Last Updated**: 2023-08-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cython #### 介绍 学习笔记 官网教程:[https://cython.readthedocs.io/en/latest/](https://cython.readthedocs.io/en/latest/) #### Cython 的两种文件 ```shell .pyx # .pyd # 有点像C语言里的头文件 ``` 编译的时候找到 setup.py 文件 在终端输入 ```shell python setup.py build python setup.py build_ext --inplace # 直接在本地生成 ``` window 环境下出现编译错误 点击下面网址 Download Visual Studio Build Tools. [https://devblogs.microsoft.com/cppblog/announcing-visual-c-build-tools-2015-standalone-c-tools-for-build-environments/](https://devblogs.microsoft.com/cppblog/announcing-visual-c-build-tools-2015-standalone-c-tools-for-build-environments/) 如果已经有生成文件,需要先删除。 #### cdef cpdef def 的区别 cdef 不能在被外部调用 cpdef 用来构建 cdef 和 def 的桥梁。 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)