獲取您自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
import requests url = 'https://w3schools.tw/python/demopage.php' myjson = {'somekey': 'somevalue'} x = requests.post(url, json = myjson) #print the response text (the content of the requested file): print(x.text)
<!DOCTYPE html>
<html>
<body>
這是一個測試頁面
</body>
</html>