IDLE Python, malo ophatikizika ophunzirira

za IDLE Python

M'nkhani yotsatira tiwona IDLE Python. Ndi za malo ophatikizika ophunzirira Python, yomwe ndi njira ina yotsatira mzere wa lamulo. Machitidwe ena amabwera ndi wotanthauzira wa Python, koma pamakina ena kungakhale kofunikira kuyiyika. Pa Gnu / Linux, IDLE imagawidwa ngati ntchito yapadera zomwe zitha kukhazikitsidwa kuchokera kumalo osungira magawidwe aliwonse.

IDE iyi ndi gwero laulere komanso lotseguka. Ngakhale mawonekedwe ake ndiabwino kwambiri kuposa ma IDE ena, palibe kuchepa kwa zinthu zomwe zili ndi IDLE. M'mizere yotsatirayi tiwona momwe kulili kosavuta kuyiyika mu Ubuntu, 18.04 muchitsanzo ichi.

Zomwe zimapezeka mu IDLE Python

IDLE imayimira Integrated Development Environment ndipo zimaphatikizapo zinthu monga:

  • Zakhala amabisidwa mu Python 100% yoyera, pogwiritsa ntchito bokosili tkinter GUI.
  • Es mtanda nsanja. Imagwira chimodzimodzi pa Windows, Unix, ndi MacOS.
  • Mawindo ambiri osintha mawindo okhala ndi sungani zingapo.
  • Kutsindika kwa Syntax.
  • Idzatipatsa mwayi wosankha kukwaniritsa kwathunthu.
  • Kulowerera mwanzeru.
  • Mawindo a Chigoba cha Python (wotanthauzira wokambirana) ndi utoto wazolowera zamakalata, zotulutsa ndi zolakwika.
  • Zimaphatikizapo a debugger wokhala ndi malo opumira mosalekeza, masitepe, ndi kuwonetsa malo amalo apadziko lonse ndi akumalo.
  • N'zotheka fufuzani pazenera lililonse, sinthani mkati mwa mkonzi windows ndikusaka mafayilo angapo (grep).

Para zambiri zokhudza ntchitoyi, mutha kufunsa zolemba zomwe amapereka mu Website.

Ikani IDLE Python pa Ubuntu

Zinthu zokha zomwe tifunikira kuti tigwire ntchitoyi ndi dongosolo la Ubuntu ndi akaunti yaogwiritsa ndi maudindo achikondi. Asanayambe kukhazikitsa, nthawi zonse amakhala anzeru yambitsani pulogalamu yomwe ikupezeka m'malo osungira zinthu. Kuti tichite izi tiyenera kungotsegula zenera (Ctrl + Alt + T) ndikulemba:

sudo apt-get update; sudo apt-get upgrade

Mukamaliza kukonza, yambitsaninso ngati kuli kofunikira.

La Kukhazikitsa IDLE ndizosavuta kotero kuti tizingofunika kulemba mu terminal (Ctrl + Alt + T):

sudo apt-get install idle

Mukangomaliza kukonza, IDLE ndi wokonzeka kupita.

Momwe mungagwiritsire ntchito IDLE

Ngati titsegula pazenera yanu, tidzapeza zolemba ziwiri za IDLE. Imodzi imatchedwa IDLE (pogwiritsa ntchito python 3.6.9, kwa ine) ndi inayo IDLE yokha.

Windo la IDLE likatsegulidwa, zonse zakonzeka kuyamba kulemba. Windo lalikulu la IDLE ndi malo olumikizirana a Python momwe malamulo a Python amatha kulembedwera pambuyo pake >>> (mu Chingerezi, prompt). Mwa kukanikiza tsamba loyambilira, IDLE idzachita lamuloli nthawi yomweyo. Dongosolo likatulutsa zotsatira, lidzawonetsedwa mu buluu popanda chizindikiro chofunsira. Mwachitsanzo, mu chizindikiritso cha IDLE titha kulemba mzere:

Dziko la IDLE la hello

print("Hola, Ubunlog")

Pambuyo pokanikiza tsamba loyambilira pa kiyibodi, muyenera kuwona ngati chithunzi pamwambapa.

Lembani pulogalamu yanu fayilo

IDLE ndiwonso mkonzi wamapulogalamu oyambira, omwe imakupatsani mwayi wolemba mapulogalamu, kuwapulumutsa kumafayilo ndikuwayendetsa. Windo lalikulu la IDLE nthawi zonse limakhala malo olumikizirana, komanso ndi zenera pomwe mapulogalamu azitha.

Kuti tipeze fayilo yamapulogalamu ndi IDLE, tiyenera kutero tsegulani zenera latsopano pogwiritsa ntchito menyu Fayilo> Fayilo Yatsopano (kapena njira yachidule ya Ctrl + N.).

Mwachitsanzo python file

Tikangomaliza kulemba nambala yathu, kuti tichite pulogalamu yosinthidwa mu IDLE, choyamba tiyenera kusunga. Mukapulumutsidwa, zitha kuyendetsedwa kudzera pamenyu kusankha Run> Run module (Titha kugwiritsanso ntchito fungulo la F5).

Uku ndikuwunika kofunikira momwe mungagwiritsire ntchito IDLE Python mu Ubuntu. Kuti mumve zambiri zamomwe mungapindulire ndi chilengedwe chophatikizachi, mutha kuyang'ana pa zolemba.

Kugwiritsa ntchito IDLE kutha kukhala chidziwitso chabwino cha ogwiritsa ntchito atsopano. Ngakhale sitiyenera kuyiwala kuti iyi ndi imodzi mwazosankha zomwe mungapeze monga mukuwonera zotsatirazi Lembani.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Khalani oyamba kuyankha

Siyani ndemanga yanu

Anu email sati lofalitsidwa.

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.