httpx示例
import httpx
r = httpx.get('https://www.baidu.com/')
print(r.headers['content-type'])
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
import httpx
r = httpx.get('https://www.baidu.com/')
print(r.headers['content-type'])
print(r.text)