Page 21 - Python Cơ Bản
P. 21
strip([chars]) PSϰM FО XVЪG Zɧ WEY GLYЦM
lstrip([chars]) PSϰM FО TLɴE XVЪG GLYЦM
rstrip([chars]) PSϰM FО TLɴE WEY GLYЦM
1ШX WР LɧQ \м Pʁ GLYЦM
isnumeric() /MВQ XVE QШX GLYЦM Gɹ TLϲM Pɧ GLYЦM WР
lower() 'LY]ВR GLYЦM LЎX XLɧRL GLо XLЬRK
upper() 'LY]ВR GLYЦM LЎX XLɧRL GLо ,3%
0MWX
0MWX XVSRK 4]XLSR Pɧ GϴY XVɾG QϲRK Zɧ GɨG TL϶R Xм Gɹ MRHI\
Gɹ XLи Xр /LɺRK RL 4,4 OI] GжE QШX QϲRK Gɹ XLВ ZкE
Pɧ WР ZкE Pɧ GLYЦM EWWSGMEXIH EVVE]
8VSRK 4]XLSR QYРR XϰS QШX QϲRK Gɹ OI] Pɧ GLYЦM XLɳ WЌ
Wм HдRK GϴY XVɾG (MGXMSREV] TL϶R XMЎT XMЎT 8VSRK TL϶R
Rɧ] GLɾRK XE WЌ RɹM чЎR 0MWX 1ШX 0MWX чвG OLEM FɨS RL
QϲRK XVSRK .732 7м HдRK [..] чВ OLEM FɨS QШX QϲRK
:ɴ Hд