主页
Python
Python Requests delete() 方法
demo_requests_delete
运行 ❯
×
更改方向
保存代码
更改主题
import requests #the required first parameter of the 'delete' method is the 'url': x = requests.delete('https://freew3c.com/python/demopage.php') #print the response text (the content of the requested file): print(x.text)
C:\Users\My Name>python demo_requests_delete.py
One record deleted.