摘要: Django中接收网络中传过来的数据以bytes类型: json_str_bytes = request.body # 从request中获取传递过来的bytes类型数据 json_str = json_str_bytes.decode() # 将bytes类型的数据解码为字符串 book_dict 阅读全文
posted @ 2022-06-26 22:55 EricYJChung 阅读(794) 评论(0) 推荐(0)