把response的字节流转换成字典 data = response.content from ast import literal_eval data = data.decode(“utf8”) data = literal_eval(data)