學習python的第一天:requests庫的基本使用

學習python的第一天 requests庫的基本使用 import requests r=requests.get(‘http://www.baidu.com’) r.status_code 200------返回值爲200,說明正常,若爲404,就NOT FOUND了! r.text------抓取信息 ‘\r\n <meta http-equiv=content-type content=t
相關文章
相關標籤/搜索