Sida Python loogu isticmaalo Windows
Sida mid ka mid ah luqadaha barnaamijyada ugu wanaagsan ee wax lagu barto(best programming languages to learn) laguna isticmaalo, la yaab maaha in malaayiin cod-bixiyayaasha cusub ay dareenkooda u jeediyaan barashada sida loo isticmaalo Python . Waxay bixisaa caqabad hoose oo soo gelid ah, iyadoo taageero u ah Python laga heli karo dhammaan nidaamyada hawlgalka ee waaweyn, taasoo kuu oggolaanaysa inaad dhisto mashruucyo laga bilaabo boggaga internetka ilaa ciyaaraha miiska (iyo in ka badan).
Python inta badan waxaa laga helaa horay loogu sii rakibay macOS iyo Linux , laakiin waxaa jira dhowr hoops oo dheeraad ah isticmaaleyaasha Windows waxay u baahan doonaan inay dhex maraan ka hor intaysan bilaabin u adeegsiga Python mashruucyadooda. Waa kuwan waxaad u baahan tahay inaad ogaato haddii aad rabto inaad barato sida loogu isticmaalo (Windows)Python Windows .
Sida Python loogu rakibo Windows
Maadaama Python uusan horay ugu sii rakiban Windows , waxaad u baahan doontaa marka hore inaad ku rakibto. Waxaa jira laba nooc oo la heli karo oo ah Python-Python 3 iyo Python 2 . Sababaha waafaqid, waxaa laga yaabaa in lagaa baahdo inaad ku rakibto oo aad isticmaasho Python 2 oo wata software Python ka weyn.(Python)
Taageerada sii daynta ugu dambeysa ee Python 2 ( Python 2.7 ) waxay ku dhamaanaysaa 2020, si kastaba ha ahaatee, marka marxaladan, waxa aad u fiican in lagu dhejiyo Python 3 .
- Si aad u bilowdo Python , waxaad u baahan doontaa inaad u gudubto mareegaha Python(Python website) oo aad soo dejiso rakibaha siidaynta ugu dambeysay. Sidaan soo sheegnay, waxaan kugula talineynaa inaad soo dejiso Python 3 Stable sii dayntii ugu dambeysay.
- Marka la soo dejiyo, socodsii rakibaha Python . Waxaa lagu soo bandhigi doonaa liiska rakibaha oo aad u sahlan in la isticmaalo, oo leh ikhtiyaar aad ku socodsiiso rakibaha oo leh jaangooyo otomaatig ah ama aad u habayn karto ka hor inta aan la rakibin.
Kahor intaadan dooran labada ikhtiyaar, si kastaba ha ahaatee, riix Ku dar Python to PATH(Add Python to PATH) sanduuqa hubinta ee hoose si aad ugu darto Python doorsoomiyahaaga (Python)PATH(PATH variable) . Tani waxay sahlaysaa in Python laga maamulo khadka taliska ama PowerShell adigoo si fudud u qoraya Python , halkii laga isticmaali lahaa jidka buuxa.
- Markaad diyaar u tahay inaad bilowdo ku rakibida Python Windows , dhagsii Ku rakib Hadda(Install Now) ikhtiyaarka si aad ugu rakibto Python adoo isticmaalaya goobaha caadiga ah, ama Habee Rakibaadda(Customize Installation) si aad isbeddel u sameyso ka hor intaysan bilaabin rakibidda.
- Haddii aad doorato inaad habayso rakibaadaada, waxaa lagu soo bandhigi doonaa dhowr menus oo dheeri ah. Liiska Tilmaamaha Ikhtiyaarka(Optional Features) ayaa muujinaya astaamo kala duwan oo lagu rakibi doono Python , oo ay ku jiraan dukumeenti Python -ka. Sifooyinka leh sanduuqyada hubinta ee karti leh ayaa lagu rakibi doonaa, markaa dhagsii mid ka mid ah kuwan si aad uga hortagto in la rakibo, ka dibna tabo Next si aad u sii wadato.
- Liiska sare ee Options(Advanced Options) , waxaad awoodi doontaa inaad habayso sida Python loo rakibo. Waxaad ka tagi kartaa goobahan inta badan, inkastoo laga yaabo inaad rabto inaad gujiso si aad awood ugu yeelatid Ku rakib dhammaan isticmaalayaasha(Install for all users) sanduuqa hubinta haddii PC-gaagu leeyahay xisaabo isticmaale oo badan.
Waxa kale oo aad dooran kartaa barta rakibaadda gaarka ah ee rakibaada Python ee hoos timaada sanduuqa Ku rakib Goobta Customize(Customize Install Location) . Guji Ku rakib(Install) si aad u bilowdo rakibidda meeshan.
- Haddii rakibiddu guulaysato, waa in aad aragto Shaashaddii u dambaysay ee Rakibaddii guul ahayd(Install was successful) . Haddii doorashada lagu tuso, taabo badhanka xadka dhererka dariiqa Disable . (Disable path length limit)Tani waa in laga gudbo xadka 260 xaraf ee galka iyo faylalka dhererka waddada. Haddii kale, taabo badhanka(Close) xidh si aad u dhammayso.
Sida loogu socodsiiyo mashaariicda (Projects)Python Windows
Marka Python la rakibo, waxaad xor u ahaan doontaa inaad u isticmaasho si aad u socodsiiso software Python ee jira ama aad bilowdo horumarinta mashaariicda Python ee adiga kuu gaar ah. Waxaad u baahan doontaa Python IDE si aad awood ugu yeelato inaad bilowdo codaynta mashaariicda Python -kaaga , sida IDLE -ka hore loogu daray , kaas oo aad ka maamuli karto menu -ka bilawga Windows .(Windows Start)
Si loo socodsiiyo koodka Python laftiisa, waxaad u baahan tahay inaad isticmaasho turjumaanka Python . Kani waa software-ka beddela koodka Python oo si habboon ugu fuliya kombuyutarkaaga Windows. Waxaad u baahan doontaa inaad furto khadka taliska ama daaqada PowerShell si aad u awoodo inaad isticmaasho turjumaanka.
- Si aad u furto daaqada PowerShell , midig-guji menu-ka Start Windows(Windows Start) oo taabo Windows PowerShell si aad u bilowdo.
- Haddii aad Python ku darto doorsoomahaaga PATH Windows(Windows PATH) inta lagu jiro rakibidda, waa inaad awood u yeelatid inaad turjumaanka bilowdo adigoo ku qoraya Python ama py daaqadda terminalka. Haddii aadan samayn, waxaad u baahan doontaa inaad isticmaasho dariiqa buuxda ee turjumaankaaga Python si aad awood ugu yeelato inaad bilowdo.
- Turjubaanka wuxuu kuu ogolaanayaa inaad ku qorto koodka Python oo aad gacanta ku socodsiiso. (Python)Tusaale ahaan, daabacaadda ("Hello World")(print(“Hello World”) ) ayaa soo celin doonta Hello World , oo uu daabacay turjumaanku.
- Tani waxay ku fiican tahay tijaabinta iyo barashada Python , laakiin turjubaanka Python waxaa sidoo kale loo isticmaalaa in lagu socodsiiyo faylal dheer oo leh koodka Python , iyo sidoo kale la soo ururiyey software Python .
Waxaad tan ku samayn kartaa adiga oo ku dhejiya Python filename.py ama py filename.py daaqada PowerShell, adigoo ku bedelaya filename.py faylkaaga Python . Isticmaal wax u dhigma filename.pyc si aad u socodsiiso faylalka Python ee la soo ururiyey oo wata kordhinta faylka PYC .
- Haddii aadan waxba ka hubin intaad isticmaaleyso turjumaanka Python , ku qor (Python)help() si aad u shubato utility-ga caawinta. Waxaad ka heli kartaa liiska qaybaha Python ee diyaarka ah adoo ku dhejinaya modules , mawduucyada adoo ku qoraya mawduucyada(topics) , ereyada muhiimka ah adoo ku dhejinaya ereyada muhiimka(keywords) ah , iyo calaamado adoo garaacaya calaamadaha(symbols) . Marka aad dhammayso, ku qor joojinta(quit) si aad uga baxdo utility-ga caawinta oo aad ku soo noqoto turjumaanka.
- Si aad uga baxdo turjumaanka Python oo aad ugu noqoto daaqadda caadiga ah ee PowerShell , ku qor bixidda()(exit()) oo taabo geli.
Ku rakibida Modules Python oo dheeri ah(Additional Python Modules)
Mashruucyo badan oo Python ah ayaa loo dhisay si ay uga faa'iidaystaan qaybo kale - software la wadaago oo mashaariicda kale isticmaali karaan si ay u badbaadiyaan wakhtiga, halkii ay "dib u soo celin lahaayeen giraangiraha." Waxaad heli kartaa oo ku rakibi kartaa qaybo dheeraad ah adigoo isticmaalaya PIP , Tusaha Xidhmada Python(Python Package Index) .
Waxaad u baahan doontaa inaad marka hore rakibto Python PIP(install Python PIP) ka hor intaadan bilaabin, in kasta oo haddii aad ku rakibtay Python 3.4 ama ka dib, waa inay hore u sii rakibtaa ilaa aad ka saarto ikhtiyaarka inta lagu jiro qaabaynta hor-u-rakibaadda Python .
Waxaad isticmaali kartaa PIP si aad ugu rakibto qaybo cusub adoo furaya daaqada PowerShell oo aad ku qorto (PowerShell)pip install pack-name(pip install package-name ) or python -m pip install pack-name(python -m pip install package-name) , adoo ku bedelaya magaca xirmada magaca(package-name) xirmo module ah oo aad ku rakibi karto. Waxaad ka raadin kartaa baakadaha si aad u rakibto adigoo isticmaalaya qalabka raadinta ee bogga PIP(PIP website) .
Tallaabooyinka Python ee soo socda
Sidaan halkan ku soo bandhignay, uma baahnid inaad u beddesho Linux ama Mac si aad awood ugu yeelatid inaad soo qaadato luuqadan barnaamij-saaxiibtinimo ee bilowga ah. Markaad ogaato sida loogu isticmaalo Python Windows -ka , waxaad bilaabi kartaa inaad eegto sida loogu isticmaalo waxyaabaha aad xiiseyso.
Haddii aad rabto inaad u beddesho rakibaadda Windows -gaaga meel ka wanaagsan si aad u tijaabiso koodkaaga, waxaa laga yaabaa inaad ka fikirto ka beddelashada PowerShell oo aad ku rakibto Terminalka Windows(installing the Windows Terminal) beddelkeeda. Ma haysaa tabo u gaar ah oo aad ku wadaagi karto Windows ? Fadlan(Please) ku dhaaf hoos.
Related posts
Dib-u-eegis Buugaag - Hagaha sida-Geek-ga loo barto ee Windows 8
Sida Loo Ilaaliyo PC-gaaga Daaqadaha Adigoon taaban Jiirka
Sida loo damiyo Furaha Daaqadaha
Sida loo furo faylasha DDS gudaha Windows 10
Sida loo tirtiro galka Windows.old gudaha Windows 7/8/10
Sida Loo Joojiyo Xidhiidhada Fog ee Kumbuyuutarka Windows ama Mac
Nadiifi galka WinSxS gudaha Windows 7/8/10
Sida Looga Saaro Qoraalka Astaamaha ku jira Barta Taskbar ee Windows
Dami furayaasha kiiboodhka ee Windows oo wata AutoHotKey
Sida loo furo Faylka JAR ee Daaqadaha
Ka hel erayga sirta ah ee WiFi gudaha Windows 10 Adigoo isticmaalaya CMD
Sida loo Uninstall BlueStacks on Windows iyo Mac
Sida Looga Biro Mode Safeed ee Dhammaan Noocyada Windows
Isku dar labada qaybood ee Windows 7/8/10
Sida loo Pixelate sawirka Windows iyo Mac
Sida Loogu Qasbo Cusboonaysiinta Siyaasadda Kooxda ee Windows 2000, XP, Vista, 8 iyo 10
Sida hoos loogu dhigo CPU-ga Windows 10
Ku Keydi Liiska Habraacyada Socodka Faylka Qoraalka ee Daaqadaha
Ka samee Warbixinta Caafimaadka Nidaamka Windows 7 si aad u hubiso khaladaadka
Uninstall iyo reinstall IE gudaha Windows 7