python中string、json、bytes的转换 json->string str = json.dumps(jsonobj) bytes->string str = str(bytes,‘utf-8’) string->json json = json.loads(str)