PyCharm - Qhov zoo tshaj plaws Linux Python IDE

Phau ntawv no yuav qhia koj rau PyCharm integrated development environment, uas yuav siv tau los tsim cov ntawv thov kev siv cov lus Python programming. Nab hab seev yog ib hom lus programming zoo vim nws yog qhov tseeb tiag. Nws tuaj yeem siv los tsim ib daim ntawv thov uas yuav khiav ntawm qhov rais, Linux thiab Mac computers tsis tas rov qab muaj cov cai.

PyCharm yog tus editor thiab debugger tsim los ntawm Jetbrains, uas yog tib cov neeg uas tsim Resharper. Resharper yog ib lub cuab tam siv los ntawm qhov rais tsim tawm rau cov cai tswj hwm thiab ua kom lawv lub neej yooj yim dua thaum sau ntawv .NET code. Ntau ntawm cov qauv ntawm Resharper tau ntxiv rau cov kev tshaj lij ntawm PyCharm.

Yuav ua li cas rau nruab PyCharm

Phau ntawv no txhim kho PyCharm yuav qhia koj txog PyCharm li cas, download tau nws, rho cov ntaub ntawv thiab khiav nws.

Tus Neeg Tuaj Saib

Thaum koj xub khiav PyCharm lossis thaum koj kaw ib qhov project koj yuav tsum tau nthuav tawm nrog ib qho screen uas qhia cov npe ntawm cov haujlwm tshiab.

Koj tseem yuav pom cov kev xaiv hauv qab no:

Muaj tseem yog ib qho chaw xaiv configure uas cia koj teem caij lub Python default version thiab lwm qhov chaw zoo li no.

Tsim Ib Txoj Haujlwm Tshiab

Thaum koj xaiv los tsim ib txoj haujlwm tshiab koj tau muab nrog ib daim ntawv teev npe ntawm cov hom phiaj ua tau raws li nram no:

Yog tias koj xav tsim ib daim ntawv thov lub hauv paus ua haujlwm uas yuav khiav ntawm qhov rais, Linux thiab Mac ces koj tuaj yeem xaiv Python Pure qhov project thiab siv QT cov tsev qiv ntawv los tsim daim ntawv sau kev lag luam uas nrhiav tau ib txwm mus rau kev khiav hauj lwm uas lawv khiav ntawm tsis hais qhov twg raug tsim.

Xws li xaiv qhov project koj yuav tau nkag mus rau lub npe rau koj qhov project, thiab tseem xaiv qhov version of Python los tiv thaiv.

Qhib A Project

Koj tuaj yeem qhib ib lub project los ntawm txhaj rau lub npe nyob rau hauv cov ntawv teev npe qhib sau npe tshiab lossis koj tuaj yeem nias qhov khawm qhib thiab xa mus rau lub nplaub tshev uas yog qhov koj xav tau qhib.

Kev kuaj xyuas los ntawm qhov chaw tswj

PyCharm muab qhov kev xaiv los xyuas qhov project code los ntawm ntau yam kev pab hauv internet xws li GitHub, CVS, Git, Mercurial, thiab Subversion.

Tus PyCharm IDE

Tus PyCharm IDE pib nrog cov zaub mov rau saum toj. Ua kom muaj li no, koj muaj tabs rau txhua txoj haujlwm qhib.

Nyob rau sab xis ntawm lub vijtsam muaj kev xaiv deb-kev xaiv rau kev ua txoj haujlwm.

Cov pane hauv qab muaj ib daim ntawv teev cov ntaub ntawv cia thiab lwm cov tsev qiv ntawv.

Ntxiv cov ntaub ntawv koj cai-nias rau ntawm lub npe qhov project thiab xaiv "tshiab". Koj mam li tau qhov kev xaiv ntxiv rau ib qho ntawm cov ntaub ntawv hauv qab no:

Thaum koj ntxiv ib daim ntawv, xws li cov ntaub ntawv sej, koj tuaj yeem pib ntaus ntawv mus rau tus editor hauv pawg vaj huam sib luag.

Cov ntawv nyeem yog txhua yam xim thiab muaj cov ntawv nyeem dub. Ib txoj kab ntsug qhia tias qhov ntxig rau koj yog tias koj tuaj yeem nco ntsoov tias koj tab tom thwj.

Tus editor kuj muaj tag nrho IntelliSense, uas txhais tau tias thaum koj pib typing lub npe ntawm cov tsev qiv ntawv los yog pom cov lus txib koj tuaj yeem ua tiav cov lus txib los ntawm kev tab.

Debugging Daim Ntawv Thov

Koj tuaj yeem debug koj daim ntawv thov txhua lub sij hawm los ntawm kev siv cov kev xaiv debugging nyob rau saum toj kawg kiag.

Yog tias koj tab tom xyaum sau daim graphical application, ces koj tuaj yeem nias lub pob khawm ntsuab khiav cov ntawv thov. Koj tseem tuaj yeem nias ua haujlwm thiab F10.

Teem caij rau daim ntawv thov koj tuaj yeem nias lub khawm ntawm qhov xub ntsuab los sis nias ua haujlwm thiab F9.Koj tuaj yeem tso chaw breakpoints hauv txoj cai kom qhov kev pab cuam nres ntawm ib txoj kab uas tau txhaj los ntawm txhaj rau cov paj xim ntawm txoj kab uas koj xav tau ua txhaum.

Ua ib kauj ruam tom ntej koj tuaj yeem nias F8, cov kauj ruam ntawm txoj cai. Qhov no txhais tau tias nws yuav khiav txoj cai, tiam sis nws yuav tsis nqis tes mus ua ib qho haujlwm. Teem caij mus ua haujlwm, koj yuav tsum nias F7. Yog tias koj muaj kev ua haujlwm thiab xav nqis tes tawm mus rau txoj haujlwm hu ua, nias haujlwm thiab F8.

Thaum koj nyob nraum debugging, nyob hauv qab ntawm qhov screen koj yuav pom ntau qhov rais, xws li ib daim ntawv teev cov txheej txheem thiab threads thiab cov uas koj tau saib xyuas qhov tseem ceeb rau. Raws li koj yog stepping los ntawm cov cai koj tuaj yeem ntxiv ib txoj kev saib xyuas rau ib qho kev sib tw kom koj pom tau thaum tus nqi hloov.

Lwm qhov kev xaiv loj yog los khiav cov cai nrog cov checker. Lub ntiaj teb lub programming tau hloov ntau ntau xyoo thiab tam sim no nws yog ib qho uas tsim tawm rau cov neeg tsim khoom los ua qhov kev xeem uas tau sim kom txhua qhov kev hloov ua lawv tuaj yeem xyuas kom paub tseeb tias lawv tsis ua txhaum lwm feem ntawm qhov system.

Tus neeg kuaj xyuas nyiaj yuav pab tau koj khiav qhov program, ua tej yam kev sim thiab tom qab ntawd thaum koj ua tiav lawm nws yuav qhia rau koj tias qhov ntau npaum li cov cai tau them rau thaum koj qhov kev xeem dhau.

Muaj ib qho cuab yeej los qhia txog lub npe ntawm ib txoj kev los sis chav kawm, pes tsawg lub sij hawm cov khoom raug hu ua, thiab ntev npaum li cas tau siv nyob rau hauv cov ntsiab lus tshwj xeeb.

Cov Cai Refactoring

Ib qho tseem ceeb ntawm PyCharm yeej yog cov kev cai xaiv cov kev xaiv.

Thaum koj pib tsim txoj cai tsawg cov cim tias yuav tshwm sim rau sab xis. Yog tias koj ntaus ib yam dab tsi uas yuav ua rau muaj qhov yuam kev lossis tsis yog sau ntawv zoo ces PyCharm yuav tso tus cim xim. Txhaj rau ntawm cov xim kos xim yuav qhia koj qhov teeb meem thiab yuav muab kev daws teeb meem.

Piv txwv li, yog tias koj muaj ib nqe lus xa tawm uas xa tawm lub tsev qiv ntawv thiab tom qab ntawd tsis txhob siv ib yam dab tsi hauv lub tsev qiv ntawv ntawd tsuas yog txoj cai qhib xim grey marker yuav qhia tias lub library tsis siv.

Lwm yam uas tsis tshwm sim uas yuav tshwm sim yog kev xaiv zoo, xws li tsuas muaj ib txoj kab dawb ntawm ib nqe lus ntshuam thiab pib ua haujlwm. Koj tseem yuav raug hais kom paub thaum koj tsim tau ib qho kev ua haujlwm uas tsis yog nyob hauv qis.

Koj tsis tas yuav ua raws li tag nrho cov cai PyCharm. Ntau ntawm lawv yog cov zoo li kev cai coding thiab tsis muaj dab tsi ua nrog seb cov cai yuav khiav los yog tsis.

Cov ntawv qhia zaub mov kuj muaj lwm cov kev xaiv pab txhawb. Piv txwv li, koj tuaj yeem ua cov cai tu thiab koj tuaj yeem tshawb xyuas cov ntaub ntawv lossis qhov project rau cov teeb meem.

Txoj kev xaus

PyCharm yog tus yawm editor tsim Python code hauv Linux, thiab muaj ob lub versions muaj. Lub zej zog version yog rau cov neeg tsim tawm, thaum lub cheeb tsam ua haujlwm muab tag nrho cov cuab yeej tsim tawm yuav tsum tsim kom tsim tau software.