📜  检查 python 版本 colab - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:19.342000             🧑  作者: Mango

代码示例1
# --------------------------------------
# OUTPUT 19/07/2021: 3.7.11
# --------------------------------------
import sys
print(sys.version)
# ----------------------[alternative]---
!python --version  # checks version from command line