Page 81 - Python Cơ Bản
P. 81
6IUYIWX
,Ц XVв WЄR GɨG TLRK XLиG XRK и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 TLRK XLиG get() :ɴ
Hд