[英]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.