Python,Jython,IronPython和wxPython有什么区别?

Python,Jython,IronPython和wxPython有什么区别?

问题描述:

我在Python编程方面还很陌生.在谷歌搜索时,我发现了一些与Python相关的词.我只是想知道Python,Jython,IronPython和wxPython之间的区别是什么.

I am quite new in Python programming. While googling I found some of the Python related words. I just wanted to know what is the difference among Python, Jython, IronPython, and wxPython.

我知道wxPython用于GUI编程.但是什么是Jython和IronPython? 请帮助我.

I know wxPython is for GUI programming. But what are Jython and IronPython? Please help me.

Jython和IronPython是不同的python实现,它们都在不同的虚拟机上运行. Jython在JVM(Java虚拟机)上运行,而IronPython在CLR(公共语言运行时)上运行.这意味着使用这些实现的程序可以利用虚拟机的库和生态系统.例如,使用Jython,我可以为Java应用程序编写插件,而使用IronPython,则可以使用.NET标准库.使用与CPython不同的实现的缺点是CPython是最常用的python,因此具有库和开发人员的最佳支持.例如,像NumPy这样的流行库只能在CPython上运行,因为它依赖于Jython或IronPython都不能提供的CPython的C api.

Jython and IronPython are different python implementations, both of which run on different virtual machines. Jython runs on the JVM (Java virtual machine) and IronPython runs on the CLR (common language runtime). This means that programs using these implementations can take advantage of the libraries and ecosystem of the virtual machines. For example, using Jython, I can write a plugin for a Java application, and using IronPython I can use the .NET standard library. The downside to using a different implementation to CPython is that CPython is the most used python, and therefore has the best support from libraries and developers. For example, a popular library like NumPy will only work on CPython, as it relies on CPython's C api, which neither Jython or IronPython can provide.