学习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
相关文章
相关标签/搜索