Cython is two closely related things:
• Cython is a programming language that blends Python with the static type system
of C and C++.
• cython is a compiler that translates Cython source code into efficient C or C++
source code. This source can then be compiled into a Python extension module or
a standalone executable.
CPython 是基於C的python解釋器,是python的一種。
Cython 則是一種部分包含和改變C語言、完全包含pyhton語言的一個編程語言,沒錯,它是一種編程語言,是python語言的一個超集,語法是Python語言語法和c語言語法的混血。cython的文件後綴是.pyx,裏面可以運行純python文件,也可以編寫C/C++語言。
the various ways to compile Cython code so that it can be run
by Python.
• Cython code can be compiled and run interactively from an IPython interpreter.
• It can be compiled automatically at import time.
• It can be separately compiled by build tools like Python’s distutils.
• It can be integrated into standard build systems such as make, CMake, or SCons.
Windows配置Cython: