编辑代码

# 方法一
import platform 
print(platform.python_version())



# 方法二
# import sys
# print(sys.version)