python脚本如下: python 脚本如下: 1234567891011121314151617181920212223#coding=utf-8import requestsimport jsonimport unittest, time, re, os header = {"Authorization": "Basic UlBDdXNlcjoxMjM0NTY="}auth = ("xxxxxx", "123456")
python 脚本如下:
1234567891011121314151617181920212223#coding=utf-8import requestsimport jsonimport unittest, time, re, os header = {"Authorization": "Basic UlBDdXNlcjoxMjM0NTY="}auth = ("xxxxxx", "123456") url = "http://192.168.x.xxxx:xxxx"data = { "jsonrpc": "1.0", "id":"curltest", "method": "sendmany", "params": [ "anryan", "CCC", {"15qMa32bckkwEaiBh5iBNAQAR2EwgEhHqv":"0.00003", "15qMa32bckkwEaiBh5iBNAQAR2EwgEhHqv":"0.00002", "15qMa32bckkwEaiBh5iBNAQAR2EwgEhHqv":"0.00001"}]}r = requests.post(url=url, json=data, auth=auth)print r.textprint r.status_code发送的
1params里面有三组键值对,其中键值一样,但是字典只会成功发送最后一对,如果想三个都发送成功,应该使用什么数据存储尼?
请教一下大家是怎么解决的~