Mbpp/391

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度591 字符
模型生成的代码 (591 字符)
def convert_list_dictionary(keys1, keys2, values):
    """
    Converts three lists into a list of nested dictionaries.
    
    Each element in the result list is a dictionary with one key from keys1,
    whose value is another dictionary with the corresponding key from keys2
    and value from values.
    
    Args:
        keys1 (list): List of outer keys.
        keys2 (list): List of inner keys.
        values (list): List of inner values.
        
    Returns:
        list: List of nested dictionaries.
    """
    return [{k1: {k2: v}} for k1, k2, v in zip(keys1, keys2, values)]
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试