Cov txheej txheem:

Python Nrog PyScripter: 6 Kauj Ruam
Python Nrog PyScripter: 6 Kauj Ruam

Video: Python Nrog PyScripter: 6 Kauj Ruam

Video: Python Nrog PyScripter: 6 Kauj Ruam
Video: NLP with Python! Bag of Words (BoW) 2024, Hlis ntuj nqeg
Anonim
Python Nrog PyScripter
Python Nrog PyScripter

Mob ntawm kev siv IDLE? Xav tau tus lej hauv qhov tshiab IDE zoo nkauj? Cov theem no yuav pab koj rub tawm Python 2.7.1 lossis Python 3.8 thiab PyScripter yog li koj tuaj yeem pib kawm thiab muaj kev lom zem nrog Python.

Khoom siv

PC - (Windows) Nrog Kev Txuas Internet

Qee Lub Sijhawm

Qhov ntawd yog nws

Kauj Ruam 1: Nrhiav Dab Tsi Version ntawm Windows Koj Muaj

Nrhiav seb Windows version twg koj muaj
Nrhiav seb Windows version twg koj muaj

Yog tias koj muaj 64 ntsis lossis 32 ntsis Windows teeb tsa koj yuav tsum tau txais version ntawm Python uas txhawb nqa qhov no.

Ua li no:

1. Mus rau Pib khawm thiab tom qab ntawv nyem rau Chaw.

2. Tom qab ntawv mus rau System thiab tom qab ntawd Hais txog.

3. Koj Qhov System Hom yuav tso saib 64 ntsis lossis 32. (Saib duab.)

4. Nco ntsoov tias koj nco dab tsi version koj muaj thiab rub tawm txhua qhov qub los ntawm txhua kauj ruam! Lossis tej yam yuav tsis ua haujlwm.

Kauj ruam 2: Rub tawm Python

Rub tawm Python
Rub tawm Python

Tom ntej no, koj yuav tsum rub tawm Python. Tam sim no koj muaj kev xaiv ntawm no. Ntau tus lej qub xav kom 2.7.1 ua haujlwm tab sis tus tshiab yog 3.8. Yog tias koj yuav tsum tau siv 2.7.1 ces koj yuav tsum rub tawm qhov version ntawd. Txwv tsis pub kuv yuav pom zoo kom tau txais 3.8 version thiab kawm txog qhov ntawd. Nco ntsoov rub qhov tseeb version (64 lossis 32) rau koj Windows version.

Rau Python 3.8.0 hauv 64 ntsis Windows rub tawm ntawm no. Rau Python 3.8.0 hauv 32 ntsis Windows rub tawm ntawm no.

Rau Python 2.7.17 hauv 64 ntsis Windows rub tawm ntawm no. Rau Python 2.7.17 hauv 32 ntsis Windows rub tawm ntawm no.

Yog tias qhov no tsis ua haujlwm koj tuaj yeem ua raws cov theem hauv qab no

1. Mus rau Python Download.

2. Xaiv 2.7.1 lossis 3.8

3. Scroll cia kom txog thaum koj pom cov ntawv.

4. Xaiv qhov Windows x86-64 installer rau 64 ntsis tshuab lossis

Xaiv Windows x86 installer rau 32 ntsis tshuab.

Kauj Ruam 3: Txhim Kho Python

Txhim kho Python
Txhim kho Python

Tom qab koj tau rub Python hauv koj qhov tsw, cia mus tom ntej thiab nruab nws.

1. Tua tawm.exe thiab nyem rau ntawm lub cim kos uas hais tias "ntxiv Python rau PATH." (saib daim duab saum toj no.)

2. Tom qab ntawv nyem "Nruab Tam Sim No."

3. Thaum ua tiav koj tuaj yeem nyem "txwv txoj kev txwv ntev."

4. Tam sim no koj tau nruab Python. YAJ! Tam sim no koj tuaj yeem kaw lub installer.

Kauj ruam 4: Rub tawm PyScripter

Rub tawm PyScripter
Rub tawm PyScripter

Tam sim no nws yog lub sijhawm kom tau txais koj daim IDE. IDE kuj tseem hu ua Kev Txhim Kho Ib Leeg Ib puag ncig yog yam koj yuav tau sau koj cov cai thiab khiav koj tus neeg txhais lus rau hauv. Kom tau PyScripter ua raws cov theem hauv qab no.

1. Mus rau sourceforge thiab nyem rau ntawm cov ntaub ntawv tab.

2. Nyem rau ntawm ib sab saum toj ntawm daim ntawv. (Raws li lub sijhawm sau qhov no nws yog PyScripter-v3.6)

3. Nyem rau x64-teeb tsa (rau 64 lub tshuab) lossis x86-teeb tsa (rau 32 lub tshuab.)

4. Cia nws rub tawm. Ces khiav nws.

Kauj Ruam 5: Txhim Kho PyScripter

Txhim kho PyScripter
Txhim kho PyScripter

1. Xaiv koj hom lus.

2. Nyem "Tom ntej."

3. Xaiv koj qhov chaw teeb tsa. (Lub neej ntawd zoo nyob ntawm no.) Xaiv "Tom ntej."

4. Nyem "Tom ntej" dua ntawm Start Menu Folder screen.

5. Yog tias koj xav kom muaj lub cim ntawm koj lub desktop koj tuaj yeem xaiv qhov ntawd ntawm lub vijtsam. (Saib daim duab saum toj no)

6. Nyem "Tom ntej" kom txog thaum kev teeb tsa tiav.

Kauj Ruam 6: Sau Koj Thawj Txoj Haujlwm

Sau Koj Thawj Txoj Haujlwm
Sau Koj Thawj Txoj Haujlwm

Thaum koj tau ua tiav teeb tsa PyScripter koj tam sim no tuaj yeem qhib nws thiab sau koj thawj qhov haujlwm.

1. Mus rau Desktop thiab ob npaug nias rau ntawm PyScripter icon.

2. Nws yuav tsum qhib yam tsis muaj qhov yuam kev. Yog tias tsis yog, tej zaum koj tau teeb tsa 64 ntsis Python nrog 32 ntsis PyScripter (lossis vise-versa.)

Tam sim no cia sau koj thawj qhov haujlwm.

3. Mus tom ntej thiab lwv tawm

def lub ntsiab ():

dhau

yog _name_ == '_main_':

lub ntsiab ()

4. Hom ntawv luam tawm ("Nyob Zoo Ntiaj Teb!")

5. Ntaus lub pob ntsuab ua si nyob rau kab saum toj kawg nkaus kom ua haujlwm koj li program (saib duab.)

6. Koj yuav pom tias tus neeg txhais lus tau luam koj cov ntawv hauv qab no.

7. Nws yog nws! Yog tias koj xav kawm paub ntau ntxiv LearnPython.org muaj qhov pib zoo qhia txog kev pib nrog Python.

Pom zoo: