python 3.X基础

查看python版本

我们可以使用以下命令来查看我们使用的Python版本:

python -V

以上命令执行结果如下:

Python 3.5.4

你也可以进入Python的交互式编程模式,查看版本:

Python 3.5.4 (v3.5.4:3f56838, Aug  8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)]on win32 
Type "help", "copyright", "credits" or "license" for more information.
>>>

退出:

exit()
原文地址:https://www.cnblogs.com/huangsxj/p/8250258.html