程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

20220522python3.10 installation tutorial

編輯:Python

One 、python3.10 download

1. Enter from the official website Windows python The download page

(1) Browser input python.org, Enter the official website page , Move the mouse to the page of the official website Downloads, choice Windows

(2) Click to enter Windows edition python The download page is shown in the figure

(3) choice Download windows install(64-bit), If the operating system is 32 The choice of position is 32 Download of bits , My computer here is 64 Bit operating system , So what I downloaded here is 64-bit, Click and wait for the download to complete . Pictured

2. Double click installation python, Check... In the installation interface Add Python 3.10 to PATH Give Way python Automatically configure environment variables ( important )

(1) When selecting the default installation , Remember to check Add Python 3.10 to PATH This is very important. As shown in the figure, it is installed by default in C disc , If you can accept it, click the default installation , Default installation click Install Now, Install now . direct install that will do .

(2) Choose Custom installation ( Click on Customize installation), Remember to check Add Python 3.10 to PATH It's important . In this step, you can modify python Installation location . Other steps are directly selected install. Pictured

3. open cmd Order confirmation python Has been installed correctly

To this step python It has been installed , And the environment variables have been automatically configured

(1) Press win key +R Open the run box , Input cmd Click ok cmd page , Pictured

(2) stay cmd Page input python, And then go back , Prompt to install python Version number of , I have an old version here python, For the time being , No new , Otherwise, the latest version should be prompted . Pictured

Two 、 Use IDLE edit python The code simply runs

(1) open python After installation, it comes with IDLE, Pictured

(2) Use IDLE Create a new file , Pictured

(3) stay IDLE Enter the code , Click on Run Under the run module function , After that, you will be prompted to save , Choose Save , Save on desktop , Then click... Again Run Under the run module.python The result is given , As shown in the figure, save the figure

(4)python What is important here is the last sentence input(), This code is critical , It can make python Displayed in the Windows On . Attach code :

print("I love python!");
print("I study python")
print(("F"+" "+" Hello ")*20);
print(("Eliks"+" Very clever ")*20);
input();

(5) Save in IDLE Write down python Code , Will generate a python file , Double click directly to run , The running results of the program can be displayed, as shown in the figure , What is important here is the last sentence input(), This code is critical , It can make python Displayed in the Windows On .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved