我在我的电脑上安装了Python。如何找出它附带的VM。
是cpython还是ipython还是jpython?
答案 0 :(得分:5)
import platform
platform.python_implementation()
来自文档:
platform.python_implementation() Returns a string identifying the Python implementation. Possible return values are: ‘CPython’, ‘IronPython’, ‘Jython’, ‘PyPy’.
答案 1 :(得分:0)
在命令提示符
中运行此命令python -c“来自平台导入python_implementation; print python_implementation()”