![](/img/trans.png)
[英]How do I find out all previous versions of python with which my code is compatible
[英]How to find out which VM i have in my Python installation?
我在我的电脑上安装了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’.
在命令提示符下运行它
python -c“来自平台导入python_implementation; print python_implementation()”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.