通过parse.unquote()方法进行解码,把 URL编码字符串,转换回原先字符串
import urlib.parse
response.text=%7B%22isOk%22%3A1%2C%22masterOrderSn%22%3A%221909051502334914%22%2C%22message%22%3A%22%E7%94%9F%E6%88%90%E8%AE%A2%E5%8D%95%E6%88%90%E5%8A%9F%22%2C%22orderFrom%22%3A%22HQ01S127%22%2C%22orderSn%22%3A%221909051502334914%22%2C%22paySn%22%3A%5B%5D%2C%22returnSn%22%3A%22%22%7D
print(urllib.parse.unquote(a))
{"isOk":1,"masterOrderSn":"19091111111111","message":"生成订单成功","orderFrom":"WQ122111","orderSn":"19091111111111","paySn":[],"returnSn":""}
urllib.parse.unquote(a)