Cov txheej txheem:

Kev Siv Computer Yooj Yim: 5 Kauj Ruam
Kev Siv Computer Yooj Yim: 5 Kauj Ruam

Video: Kev Siv Computer Yooj Yim: 5 Kauj Ruam

Video: Kev Siv Computer Yooj Yim: 5 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Kev Siv Computer Yooj Yim
Kev Siv Computer Yooj Yim

Ib txoj hauv kev yooj yim heev thiab DAWB rau leej twg los sau lawv thawj lub khoos phis tawj hauv TEN MINUTES. Nco tseg: Cov lus qhia no yog rau cov tib neeg uas xav tias kev ua haujlwm yog qee yam txuj ci tseem ceeb uas koj xav tau cov phiaj xwm kim lossis cov txuj ci thev naus laus zis los ua. Cia siab tias cov lus qhia no yuav tshem daim ntaub thaiv los ntawm lawv lub qhov muag los qhia lawv tias nws yooj yim thiab siv tau rau txhua tus neeg uas muaj lub khoos phis tawj. Yog koj xav kawm ntxiv, yuav ib phau ntawv. Qhov 'Sam Qhia Koj Tus Kheej … hauv 30 hnub' phau ntawv yog qhov zoo.

Kauj Ruam 1: Tau Cov Khoom Tsim Nyog

Tau cov khoom tsim nyog
Tau cov khoom tsim nyog
Tau cov khoom tsim nyog
Tau cov khoom tsim nyog

peb yuav tsim cov phiaj xwm hauv Perl hom lus vim nws yooj yim heev rau siv thiab pub dawb. Tsis tas li, koj tuaj yeem yooj yim sib txuas nrog internet, thiab lwm yam. Tau txais ActivePerl (tus kws txhais lus Perl) ntawm no: https://www.activestate.com/Products/ActivePerl/click rub tawm, sau lub npe cuav, thiab lwm yam Yog tias siv windows rub tawm MSI, yog tias nws tsis ua haujlwm rub tawm AS pob hloov.once rub tawm, nruab nws (tsuas yog ob npaug nias nws, tom qab ntawd siv tag nrho cov kev xaiv ua hauv kev teeb tsa).

Kauj Ruam 2: Txheeb Xyuas Yog Koj Tau Txhim Kho Nws Kom raug

Tshawb xyuas seb koj puas tau txhim kho nws kom raug
Tshawb xyuas seb koj puas tau txhim kho nws kom raug
Tshawb xyuas seb koj puas tau txhim kho nws kom raug
Tshawb xyuas seb koj puas tau txhim kho nws kom raug

yog tias koj tsis txaus ntseeg thiab xav pom yog tias nws tau teeb tsa raug, mus rau DOS tam sim thiab ntaus: perl -v

nws yuav tsum qhia koj txhua cov ntaub ntawv hloov pauv. qhib DOS tam sim no ib qho: A) Pom nws hauv cov ntawv qhia zaub mov pib (saib duab hauv qab no: "Pib", "Cov Haujlwm", "Cov Khoom Siv", "Hais kom sai") LOSSIS B) koj tuaj yeem nyem "Pib" ces "Khiav" "thiab ntaus cmd.exe hauv lub qhov rai uas tshwm.

Kauj Ruam 3: Sau Koj Thawj Txoj Haujlwm

Sau Koj Thawj Txoj Haujlwm
Sau Koj Thawj Txoj Haujlwm

pib sau cov ntawv sau (zoo li 'notepad.exe' uas los nrog lub qhov rais; Ua -NOT- siv lo lus lossis wordpad, lawv ntxiv cov khoom tsis pom rau cov ntawv!). Koj tuaj yeem pom cov ntawv sau hauv tib qho ntawm cov ntawv qhia zaub mov pib ua DOS tam sim (saib daim duab hauv cov kauj ruam dhau los). Kuv nyiam siv EditPad.exe uas kuv tau txais dawb los ntawm internet: https://www.editpadpro.com/editpadclassic.html sau koj thawj qhov haujlwm:#!/usr/bin/env perlprint "Nyob zoo, Ntiaj Teb! / n"; txuag nws li nyob zoo.pl (nco ntsoov tias koj khaws nws nrog. pl li txuas ntxiv, tsis nyob zoo.pl.txt). Kom paub tseeb tias '.txt' tsis tau txais ntxiv rau koj lub npe, nyem 'Cov ntaub ntawv twg (".")' Nyob ib sab ntawm 'Txuag raws li hom'. (saib daim duab hauv qab no) Tsis tas li, txhawm rau ua kom yooj yim sim, khaws nws hauv c: / Perl / phau ntawv teev npe (lossis txhua qhov chaw koj tau teeb tsa Perl tus neeg txhais lus, los ntawm lub neej ntawd nws teeb tsa hauv c: / Perl).

#!/usr/bin/env perl yog qee qhov tsis zoo uas koj yuav tsum tau muab tso rau thaum pib ntawm tag nrho koj cov haujlwm. / n yog lub cim rau kab tshiab. Yog li thaum Perl pom qhov no nws txav tus cursor mus rau kab tom ntej (zoo li thaum koj nias tus yuam sij rov qab)

Kauj ruam 4: Khiav Koj Txoj Haujlwm

Khiav Koj Txoj Haujlwm
Khiav Koj Txoj Haujlwm

mus rau DOS cov lus txib tam sim (lossis DOS qhov rai hauv qhov rais), mus rau Perl phau ntawv txhais lus txhais, piv txwv li c: / perl

yog tias koj tsis paub yuav hloov pauv cov npe hauv DOS li cas, koj yuav ua li cas: cd c: / perl ces ntaus perl -w hello.pl (koj kuj tseem tuaj yeem ntaus hello.pl yog tias koj cuam tshuam.pl cov ntaub ntawv nrog Perl tus neeg txhais lus thaum teeb tsa) koj yuav tsum pom Nyob Zoo Ntiaj Teb! aw !!, koj qhov haujlwm ua haujlwm !! Yog tias tsis yog, tom qab ntawd koj yuam kev/hla ib qho ntawm cov kauj ruam saum toj no.

Kauj Ruam 5: Sau Cov Txheej Txheem Zoo

Sau Cov Txheej Txheem Zoo!
Sau Cov Txheej Txheem Zoo!

Txhawm rau sau cov phiaj xwm txaus nyiam kom pom tus lej piv txwv hauv is taws nem lossis yuav ib phau ntawv. Kuv ib txwm txaus siab nrog 'Sams Qhia Koj Tus Kheej … hauv 21 hnub "phau ntawv. Nov yog qee lub vev xaib zoo kom kawm paub ntau ntxiv Perl los ntawm (pom los ntawm googling: Perl qhia) https://www.pageresource.com/cgirec/ index2.htmhttps://www.sthomas.net/oldpages/roberts-perl-tutorial.htmhttps://www.ebb.org/PickingUpPerl/================== =========================================== Qhov "Sam Qhia Koj Tus Kheej … hauv 21 hnub "yog cov phau ntawv zoo heev los kawm _ANY_ cov lus programming (Kuv tau siv ntau yam): Phau Ntawv Zoo Tshaj Kuv tau txais cov duab tas lauv hauv qab no los ntawm:

Pom zoo: