python+requests+pymysql实现接口随机入参生成数据
import json
import random
import string
import time
import pymysql
import requests
def GetToken():
url = 'http://admin/api/user/login'
date = {
"mobile": "11111111111",
"pwd": "123456",
"type": "1"
}
response = requests.post(url, data=date).json()["data"]["token"]
print(response)
return response
def returnSku():
ran_sku = ['D0164911', 'D10000013', 'D016
共有 0 条评论