获取您自己的
Python
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
import requests url = 'https://w3schools.com/python/demopage.php' #demonstrate how to use the 'params' parameter: x = requests.get(url, params = {"model": "Mustang"}) #print the response (the content of the requested file): print(x.text) #the file 'demopage.php' looks for a 'model' query string and prints its value.
<!DOCTYPE html>
<html>
<body>
<p>你送我一辆野马</p>
</body>
</html>