requests示例
#!python3
# -*- coding:utf8 -*-
# pip3 install requests
import requests
r = requests.get("https://www.baidu.com/")
print(r.headers)
print(r.text)
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#!python3
# -*- coding:utf8 -*-
# pip3 install requests
import requests
r = requests.get("https://www.baidu.com/")
print(r.headers)
print(r.text)