import requests
url = "http://1.1.1.1:80/api//create"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <your_token>"
}
data = {
"goodsName": "自动化测试商品",
"price": 88.88,
"stock": 50
}
response = requests.post(url, json=data, headers=headers)
print(response.status_code)
print(response.json())
Python自动化测试接口
最新推荐文章于 2026-06-22 23:38:57 发布

2421

被折叠的 条评论
为什么被折叠?



