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 TLš˜RK XLиG GжE



                  GPEWW  animal


                   name  Zɧ  age  Pɧ XLYШG XɴRL  %XXVMFYXI  GжE GPEWW


                  4Lš˜RK 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ɧ   TLš˜RK XLиG GжE   GPEWW


                  /LM OLEM FɨS TLš˜RK 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 TLš˜RK
   37   38   39   40   41   42   43   44   45   46   47