def dict_get(dict_, obj_key):
    """
    从嵌套的字典中拿到需要的值
    :param dict_: 要遍历的字典
    :param obj_key: 目标key
    :return: 目标key对应的value
    """
    if isinstance(dict_, dict):
        for key, value in dict_.items():
            if key == obj_key:
                return value
            else:
                # 如果value是dict类型，则进行迭代
                if isinstance(value, dict):
                    ret = dict_get(value, obj_key)
                    if ret is not None:
                        return ret
                # 如果value是list类型，则依次进行迭代
                elif isinstance(value, list):
                    for i in range(len(value)):
                        ret = dict_get(value[i], obj_key)
                        if ret is not None:
                            return ret
        # 如果找不到指定的key，返回None
        return None
    else:
        return None