json.dumps():接收python类型的数据作为参数,返回了一个str对象的encodedjson(从python数据转换为json); json.loads():接收json字符串,返回python类型的数据(从json字符串转换为python数据)