怎么查看python的版本号

一共三种办法,三个命令,都需要在cmd窗口下用命令行操作

命令分别是:

python -V

python --version

python

方法一

C:\Users\28693>python -V
Python 3.11.9

方法二

C:\Users\28693>python --version
Python 3.11.9

方法三

C:\Users\28693>python
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐