gpt4 book ai didi

python - 如何找出我的 Python 安装中有哪个 VM?

转载 作者:太空狗 更新时间:2023-10-30 02:46:14 24 4
gpt4 key购买 nike

我在我的电脑上安装了 Python。如何找出它附带的 VM。

是cpython还是python还是python?

最佳答案

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

关于python - 如何找出我的 Python 安装中有哪个 VM?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21510739/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com