import requests
#发送网络请求
response = requests.get('https://www.baidu.com')
print(response.status_code)#打印状态码
print(response.url)#打印请求url
print(response.headers)#打印头部信息
print(response.cookies)#打印Cookie信息
#实现不带参数的网络请求
import requests
#发送网络请求
response = requests.get('https://www.baidu.com')
print(response.status_code)#打印状态码
print(response.url)#打印请求url
print(response.headers)#打印头部信息
print(response.cookies)#打印Cookie信息
#实现不带参数的网络请求