python cpython和python有什么区别吗

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2324208/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-04 00:22:33  来源:igfitidea点击:

Is there any difference between cpython and python

python

提问by fear_matrix

I want to know the difference between CPython and Python because I have heard Python is developed in C - then what is the use of CPython?

我想知道CPython和Python的区别,因为听说Python是用C开发的——那CPython有什么用呢?

回答by kennytm

Python is a language.

Python是一种语言。

CPythonis the default byte-code interpreter of Python, which is written in C.

CPython是 Python 的默认字节码解释器,它是用 C 编写的。

There is also other implementation of Python such as IronPython (for .NET), Jython (for Java), etc.

还有其他 Python 实现,例如 IronPython(用于 .NET)、Jython(用于 Java)等。

回答by YOU

CPythonis Guido van Rossum's reference version of the Python computing language. It's most often called simply "Python"; speakers say "CPython" generally to distinguish it explicitly from other implementations.

CPythonGuido van Rossum的 Python 计算语言的参考版本。它通常被简单地称为“Python”;演讲者通常说“CPython”是为了将它与其他实现明确区分开来。