我在我的电脑上安装了Python.如何找出它附带的VM.
是cpython还是ipython还是jpython?
import platform platform.python_implementation()
从文档:
platform.python_implementation() Returns a string identifying the Python implementation. Possible return values are: ‘CPython’, ‘IronPython’, ‘Jython’, ‘PyPy’.
http://docs.python.org/2/library/platform.html