python操作mongodb查询出现Object of type 'ObjectId' is not JSON serializable解决方法 from bson import ObjectId, json_util json_util.dumps(res)