使用代码中的什么命令我可以了解 IronPython 或 Python 正在运行?
检查
platform.python_implementation()
platform.python_implementation() 返回标识 Python 实现的字符串。可能的返回值为:‘CPython’、‘IronPython’、‘Jython’、‘PyPy’。
返回标识 Python 实现的字符串。可能的返回值为:‘CPython’、‘IronPython’、‘Jython’、‘PyPy’。