Page 30 - Python Cơ Bản
P. 30
8YTPI
8YTPI GˢRK Pɧ QШX GϴY XVɾG QϲRK XRK 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 TLRK 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 RLRK 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] XRK Xр RL QШX SFNIGX NWSR 1ШX (MGXMSREV]
чвG OLEM FɨS FЀRK GІT HϴY RKSІG {...} :ɴ Hд