刚学习了python使用OPTIONS ,delete方式请求接口,跟大家分享下。(ps,我也是踩了不少的坑)
下面代码是一个删除并确定的步骤
import urllib.request
import requests
import json
def getlist():
url="http://test-**************ink:8803/api/pc/collectFile/list"
host={
"X-Token":"********",
"Content-Type":"application/json;charset=UTF-8"
}
date={
"page":1,"pageSize":10,"keyWords":"&