Page 16 - Python Cơ Bản
P. 16
GɨGL чІX XɱR XLEQ WР OLM KМM LɧQ :ɴ Hд XE Gɹ XLВ KМM LɧQ
sum(a,b) Ю Zɴ Hд XVɱR FЀRK GɨGL XVY]АR XLEQ WР b XVЪG a
RL WEY
sum(b = 1, a = 10)
<м Pʁ GLYЦM
1ШX GLYЦM Gɹ XLВ OLEM FɨS FЀRK HϴY RLɨ] чɺM " LSІG чR
' :ɴ Hд GɨG GLYЦM WEY
str1 = "Hello"
str2 = 'world'
'ɹ XLВ XVY] \YϴX XкRK Oʁ Xр XVSRK QШX GLYЦM XLIS LɳRL XLиG
MRHI\ Zɴ Hд str1[0] str1[1] ŷ
'ɹ XLВ Wм HдRK HϴY RLɨ] чɺM LSІG чR чВ OLEM FɨS
GLYЦM XVɱR RLMАY HɸRK :ɴ Hд