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

import urllib2

           import json



           response = urllib2.urlopen('https://api.github.com/

           users/voduytuan/repos')



           data = json.load(response)



           print data





          :ɴ Hд XVɱR WЌ XVY] ZϴR чšЬRK HϺR


          LXXTW   ETM KMXLYF GSQ YWIVW ZSHY]XYER VITSW чВ Pϴ] HERL


          WɨGL 6ITSWMXSV] XVɱR +MXLYF GжE QɳRL HšЪM чКRL HϰRK


          .732  7EY чɹ  WЌ чšвG




               4EVWMRK .732 (EXE





          2ЎY RLš FϰR чɪ Gɹ .732 HEXE HšЪM HϰRK GLYЦM  QYРR


          TEVWMRK GLYЦM Rɧ] XLɧRL (EXE XLɳ Wм HдRK RLš GɨGL HšЪM


          чɩ]
   51   52   53   54   55   56   57   58   59   60   61