摘要:
def post(url, data=None, json=None, **kwargs):post请求中data&json的传参问题用data参数提交数据时,request.body的内容则为a=1&b=2的这种形式;用json参数提交数据时,request.body的内容则为'{"a": 1, 阅读全文
posted @ 2022-02-12 16:58
wind_y
阅读(577)
评论(0)
推荐(0)
摘要:
两种方法:str()以及json.dumps() 注意:单引号双引号的区别 str方法将其变为单引号,json.dumps方法仍是双引号!!!! 初始字典为双引号 import json d={"name":"lisa","gender":"male"} print(type(d)) str_d=s 阅读全文
posted @ 2022-02-12 14:42
wind_y
阅读(4776)
评论(0)
推荐(0)

浙公网安备 33010602011771号