Page 42 - Python Cơ Bản
P. 42
7EY OLM XLрG XLM WЌ GLS VE OЎX UYϲ
My Name is
Animal is running...
Animal is going...
My Name is Lucy
Dog is running...
Animal is going...
8VSRK Zɴ Hд XVɱR XLɳ
animal Zɧ dog Pɧ GPEWW 8VSRK чɹ GPEWW dog OЎ XLкE
Xк GPEWW GLE Pɧ animal RɱR WЌ Gɹ GɨG TLRK XLиG GжE
GPEWW animal
name Zɧ age Pɧ XLYШG XɴRL %XXVMFYXI GжE GPEWW
4LRK XLиG __init__(self) Pɧ LɧQ XϰS GжE GPEWW
,ɧQ Rɧ] WЌ чвG KМM QЦM OLM Gɹ QШX SFNIGX QЪM чвG
XϰS Xк QШX GPEWW KМM Pɧ UYɨ XVɳRL XϰS MRWXERGI
show() run() Zɧ go() Pɧ TLRK XLиG GжE GPEWW
/LM OLEM FɨS TLRK XLиG Gɹ OɯQ XLEQ WР self HɽRK
чВ XVY] GϼT RKвG PϰM SFNIGX чERK KМM 0ɾG KМM TLRK