在命令行窗口运行python -V的方法

在命令行窗口运行python -V的方法

小编给大家分享一下在命令行窗口运行python -V的方法,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!

在命令行运行python -V的步骤如下:

1、在win10系统上使用组合键WIN + R ,启动运行窗口,在运行窗口中输入cmd ,点击确定按钮

在命令行窗口运行python -V的方法

2、启动一个cmd命令行窗口

在命令行窗口运行python -V的方法

3、在cmd命令行窗口中输入python -V,有下图所示的回显,说明python3的环境已经安装到电脑上了,可以运行python脚本。

在命令行窗口运行python -V的方法

python -V的功能如下:

python -V (大写)与 python --version 功能相同,是将 python 版本打印并退出 python。

看完了这篇文章,相信你对在命令行窗口运行python -V的方法有了一定的了解,想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!