获取你的
Python
服务器
×
更改方向
更改主题,暗/亮
前往 Spaces
import requests url = 'https://w3schools.org.cn/python/demopage.php' #use the 'cookies' parameter to send cookies to the server: x = requests.head(url, cookies = {"favcolor": "Red"}) print(x.status_code)
200