我如何了解正在运行的 IronPython 或 Python?

问题描述 投票:0回答:1

使用代码中的什么命令我可以了解 IronPython 或 Python 正在运行?

python ironpython
1个回答
0
投票

检查

platform.python_implementation()
的值。

platform.python_implementation()

返回标识 Python 实现的字符串。可能的返回值为:‘CPython’、‘IronPython’、‘Jython’、‘PyPy’。

© www.soinside.com 2019 - 2024. All rights reserved.