獲取您自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
import requests url = 'https://w3schools.com/python/demopage.php' #Sometimes the server redirects a request, could be if the file does not exist etc., set the 'allow_redirects' parameter to False to deny redirects: x = requests.delete(url, allow_redirects=False) #print the response text (the content of the requested file): print(x.text)
檔案已移動 - W3Schools 教學
<body><h1>物件已移動</h1>此文件可在
此處
找到。</body>