Page 60 - Python Cơ Bản
P. 60

<name>Strawberry Belgian Waffles</name>

                   <price>$7.95</price>

                   <description>Light Belgian waffles covered

           with strawberries and whipped cream</description>

                   <calories>900</calories>

               </food>

           </breakfast_menu>

           '''



           soup = Soup(note, 'xml')



           foods = soup.findAll('food')



           for x in foods:

               print x.find('name').string, ': ', x.price.stri

           ng






          /LM GLϰ] XLɳ WЌ LMВR XLК VE QɧR LɳRL RLš WEY





           Belgian Waffles :  $5.95

           Strawberry Belgian Waffles :  $7.95






          ɇРM XšвRK XLYШG GPEWW  Soup   &IEYXMJYP7SYT  WЌ KMɾT XVY]


          \YϴX GɨG XLɧRL TL϶R GжE JMPI \QP RLERL GLɹRK Zɧ XMЖR PвM
   55   56   57   58   59   60   61   62   63   64   65