获取您自己的
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>
<h1>这是一个测试页面</h1>
</body>
</html>