獲取您自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
import requests #the required first parameter of the 'get' method is the 'url': x = requests.get('https://w3schools.com/python/demopage.htm') #print the response text (the content of the requested file): print(x.text)
<!DOCTYPE html>
<html>
<body>
這是一個測試頁面
</body>
</html>