安装: pip install requests 使用: import requests HTTP请求:GET.POST.PUT.DELETE.HEAD.OPTIONS 1) get res = requests.get("https://github.com/timeline.json") 2) post res = requests.post("http://httpbin.org/post"); 3) put res = requests.put("…
logging example Level When it's used Numeric value DEBUG Detailed information, typically of interest only when diagnosing problems. 10 INFO Confirmation that things are working as expected. 20 WARNING An indication that something unexpected happened,…