本文主要记录Python的安装和环境配置:

Python下载官网:​​https://www.python.org/​​;

Python(1):安装和环境配置_自定义

 

 我这里下载最新稳定版的Python;

Python(1):安装和环境配置_python_02

 

 运行下载的安装文件开始安装;

Python(1):安装和环境配置_python模块_03

 

不需要理会直接Next;

 Python(1):安装和环境配置_自定义_04

 

 自定义安装路径,我这里安装到了E盘下;

Python(1):安装和环境配置_python_05

 

 等待安装完成即可;

Python(1):安装和环境配置_python模块_06

 

 Ctrl+R运行cmd输入python -V查看Python版本;

Python(1):安装和环境配置_自定义_07

 

调用编辑器:

使用 ​​python -c command [arg] ...​​ 模式运行Python代码

尝试在终端中执行:

python -c "print('Hello')"

Python(1):安装和环境配置_自定义_08

使用 ​​python -m module [arg] ...​​ 模式运行Python模块

交互模式:

在终端中执行 python 命令进入交互模式

python

Python(1):安装和环境配置_python模块_09

 

Python(1):安装和环境配置_python_10

 安装完成。