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

6IUYIWX





          ,Ц XVв WЄR GɨG TLš˜RK XLиG Xš˜RK иRK GLS ,XXT VIUYIWX


          RLš +)8  4378  498  ()0)8)ŷ






           import requests



           r = requests.get('https://api.github.com/events')

           r = requests.post("http://httpbin.org/post")

           r = requests.put("http://httpbin.org/put")

           r = requests.delete("http://httpbin.org/delete")

           r = requests.head("http://httpbin.org/get")

           r = requests.options("http://httpbin.org/get")





                  +)8 5YIV] WXVMRK





          ɇРM ZЪM GɨG VIUYIWX  GET   Gɹ XLВ XVY]АR XLEQ WР чšЬRK HϺR


          XLɺRK UYE XLEQ WР  params  OLM KМM TLš˜RK XLиG  get()   :ɴ

          Hд
   76   77   78   79   80   81   82   83   84   85   86