Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Nrhiav Dab Tsi Version ntawm Windows Koj Muaj
- Kauj ruam 2: Rub tawm Python
- Kauj Ruam 3: Txhim Kho Python
- Kauj ruam 4: Rub tawm PyScripter
- Kauj Ruam 5: Txhim Kho PyScripter
- Kauj Ruam 6: Sau Koj Thawj Txoj Haujlwm
Video: Python Nrog PyScripter: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
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
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
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
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
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
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
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:
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
PCB Tsim Nrog Cov Kauj Ruam Yooj Yim thiab Yooj Yim: 30 Kauj Ruam (nrog Duab)
PCB Tsim Nrog Cov Kauj Ruam Yooj Yim thiab Yooj Yim: HELLO PHOOJ YWG Nws muaj txiaj ntsig zoo thiab qhia tau yooj yim rau cov uas xav kawm PCB tsim los cia pib
Yuav Ua Li Cas Ua Ntej Screen Video Nrog Plaub Kauj Ruam: 4 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Thiaj Ua Ntej Video Nrog Plaub Kauj Ruam: Peb feem ntau pom tib tus neeg ua yeeb yam hauv qhov xwm txheej ob zaug hauv TV ua si. Thiab raws li peb paub, tus ua yeeb yam tsis muaj tus kwv ntxaib. Peb kuj tau saib tias ob daim vis dis aus hu nkauj tso rau ntawm ib qho screen los sib piv lawv cov txuj ci hu nkauj. Nov yog lub zog ntawm spl
Tsheb kauj vab taug qab System nrog Tuag Tus Txiv Neej Alert Nrog Sigfox: 7 Cov Kauj Ruam (nrog Duab)
Tsheb kauj vab taug qab System Nrog Tuag Tus Txiv Neej Alert Nrog Sigfox: Kev ruaj ntseg rau cov neeg caij tsheb kauj vab nrog taug qab thiab xa cov yam ntxwv ceeb toom. Thaum muaj xwm txheej ceeb toom raug xa nrog GPS txoj haujlwm.Kev ruaj ntseg rau cov neeg caij tsheb kauj vab yog qhov yuav tsum tau, nrog kev tsheb kauj vab lossis tsheb kauj vab roob sib tsoo tshwm sim thiab sai li sai tau thaum muaj xwm txheej ceev