获取你的
Python
服务器
×
改变方向
改变主题,暗/亮
前往Spaces
import requests url = 'https://w3schools.org.cn/python/demopage.php' myfiles = {'file': open('myfirstreact.png' ,'rb')} x = requests.post(url, files = myfiles) #print the response text (the content of the requested file): print(x.text)
<!DOCTYPE html>
<html>
<body>
<h1>这是一个测试页面</h1>
</body>
</html>