Page 30 - Python Cơ Bản
P. 30

8YTPI





          8YTPI GˢRK Pɧ QШX GϴY XVɾG QϲRK  Xš˜RK Xр RLš GϴY XVɾG


          0MWX  1ШX WР чMВQ OLɨG RLEY G˜ FϲR Pɧ OLEM FɨS 8YTPI Wм


          HдRK GІT HϴY RKSІG  (...)  Zɧ QШX XYTPI чɪ чšвG OLEM FɨS


          VТM XLɳ OLɺRK XLE] чФM чšвG KMɨ XVК  MQQYXEFPI  Zɧ OLɺRK LЦ


          XVв GɨG TLš˜RK XLиG RLš  append()    pop() ŷ:ɴ Hд





           mytuple = ('x', 'y', 'z')

           print mytuple

           (HiӅn thӍ ('x', 'y', 'z'))






          :ϺR LЦ XVв GɨG GɨGL чВ XVY] \YϴX TL϶R Xм KMРRK 0MWX RLš Pɧ

          XVY] \YϴX XLIS MRHI\  VERKI  XɳQ OMЎQŷ




               (MGXMSREV]






          (MGXMSREV] GˢRK Pɧ QШX GϴY XVɾG QϲRK  RLšRK GɨG TL϶R Xм


          FES KТQ OI] Zɧ ZEPYI  2ЎY FϰR Gɹ FMЎX .732 XLɳ GϴY XVɾG


          (MGXMSREV] Xš˜RK Xр RLš QШX SFNIGX NWSR  1ШX (MGXMSREV]

          чšвG OLEM FɨS FЀRK GІT HϴY RKSІG  {...}   :ɴ Hд
   25   26   27   28   29   30   31   32   33   34   35