python的安裝和Hello,World編寫

一、 安裝python3.8

1.1、下載python3.8

下載地址:https://www.python.org/downloads/release/python-386/

直接下載地址:https://www.python.org/ftp/python/3.8.6/python-3.8.6-amd64.exe

image-20201110145116138

點擊下載。

1.2、安裝python3.8

  1. 勾選Add Python 3.8 to PATH。

image-20201110145548426

  1. 不用更改點擊Next。

image-20201110145808464

  1. 選擇Install for all user,選擇後Add Python to environment variables自動勾選。修改地址爲D:\Python38,點擊Install。

image-20201110145923519

  1. 正在安裝。

image-20201110150122294

  1. 安裝成功,點擊close關閉。

image-20201110150207250

1.3、交互環境

image-20201110150420129

  1. python基於wendows命令提示符python Shell。

image-20201110150826586

  1. IDLE的Python Shell
    image-20201110164302424

二、編輯Hello,world!

2.1、使用文本編輯器編寫

image-20201110152012857

使用python hello.py執行文件。

image-20201110150826586

2.2、使用 IDLE工具

image-20201110163726181