Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 83 - Math_Genius_1 2
P. 83

    vkWCtsDV&vksfj,aVsM  (Object-Oriented)%  ik;Fku d{kkvksa vkSj oLrqvksa dh vkWCtsDV&vksfj,aVsM çksxzkfeax
                          voèkkj.kkvksa dk leFkZu djrk gSA çksxzke vkWCtsDV~l osQ vklikl cuk, tkrs gSa tks MsVk vkSj dk;Z{kerk nksuksa dks
                          feykrs gSaA
                         O;k[;kf;r (Interpreted)% ik;Fku nqHkkf"k;k ,d le; esa dksM ,d iafDr dks fu"ikfnr djrk gSA vkarfjd :i

                          ls] ik;Fku Ïksr çksxzke dks ,d eè;orhZ :i esa ifjo£rr djrk gS] ftls ckbVdksM (bytecode) dgk tkrk
                          gS vkSj fiQj bls fof'k"V IysViQkWeZ ij pykus osQ fy, vuqokn djrk gSA
                         baVj,fDVo eksM (Interactive Mode)% ik;Fku vkbZMh,ybZ (baVxzsfVM fMosyiesaV ,aM y²ux ,uok;jesaV) esa
                          ik;Fku 'ksy vkSj ik;Fku laiknd 'kkfey gSaA ik;Fku 'ksy ,d baVjsfDVo baVjçsVj foaMks gS] tgk¡ ik;Fku dksM
                          >>> çkWEIV ij Vkbi fd;k tkrk gS vkSj 'ksy ifj.kke osQ lkFk çfrfØ;k djrk gSA
                         ØkWl&IysViQkWeZ (Cross-platform)% ,d ik;Fku çksxzke fcuk fdlh cnyko osQ fdlh Hkh IysViQkWeZ ij py
                          ldrk gS] ftldk eryc gS fd ogh çksxzke foaMkst] fyuDl] eSfdUVks'k vkfn ij pysxkA

                     ik;Fku ,d lkekU; mís';] xfr'khy] O;k[;kRed] laoknkRed] mPp&Lrjh;] cgq&eap vkSj oLrq&mUeq• çksxzkfeax Hkk"kk gSA

                                                              S
                         ik;Fku vkbZMh,ybZ dk mi;ksx dls djsa (How To Use Python IDLE)
                     ik;Fku IDLE dk mi;ksx djus osQ fy,] bu LVsIl dk ikyu djsa%

                     LVsi 1  Start ij fDyd djsa → All programs → Python 3.7 → IDLE (Python 3.7 32-bit)
                     LVsi 2  ;g eq[; IDLE foaMks (ftls nqHkkf"k;k ;k 'ksy foaMks osQ :i esa Hkh tkuk tkrk gS) dks •ksysxkA

                     LVsi 3  IDLE foaMks osQ nks Hkkx gksrs gSa% esuw ckj vkSj çkWEIV (>>>)

                                                                  esuw ckj (Menu bar)

                                    izkWEIV
                                  (Prompt)

                                           ik;Fku vkbZMh,ybZ foaMks (izkWEIV) [Python IDLE Window (Prompt)]

                     esjk igyk ik;Fku dk;ZØe (My First Python Program)
                     ik;Fku çkWEIV vkidks lh/s dekaM ntZ djus vkSj Enter dh nckdj bldk rqjar vkmViqV çkIr djus dh vuqefr nsrk gSA

                     çksxzke fy•us osQ fy,] fuEu LVsIl dk ikyu djsa%
                     LVsi 1  fuEufyf•r fçaV LVsIl dks çkWEIV ij fy•sa

                             >>> print ("Hello World.")
                     LVsi 2  Enter dh nck,¡A

                                                     vkmViqV izn£'kr djuk (Displaying output)
                     vkidks Hello World LØhu ij fy•k fn•kbZ nsxkA

                                                                                                  ik;Fku dk ifjp;   81

| 78 79 80 81 82 83 84 85 86 87 88 |