首页 > IT职业 > IT生活 > 怎么查找python装在哪里

Python是一种跨平台的计算机程序设计语言。是一种面向对象的动态类型语言,最初被设计用于编写自动化脚本(shell),随着版本的不断
更新和语言新功能的添加,越多被用于独立的、大型项目的开发。
推荐:Python教程
从官网下载python的安装包,安装过程中可选择装在C盘或D盘或者其他的磁盘。
如果忘记了安装在哪里,可以在命令行中使用以下命令
where python
会显示python的绝对路径
C:UsersAdministrator>where python C:UsersAdministratorAppDataLocalProgramsPythonPython37python.exe C:UsersAdministrator>
使用python
同样打开命令行,输入Python,如下
C:UsersAdministrator>python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
此时便进入了python的交互模式,可以编写代码了。
更多技术请关注Python视频教程。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2001/viewspace-2834168/ ,如需转载,请注明出处,否则将追究法律责任。