Mbpp/272

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度303 字符
模型生成的代码 (303 字符)
def rear_extract(tuples_list):
    """
    Extract the last element from each tuple in the given list.

    Args:
        tuples_list (list of tuples): A list containing tuples.

    Returns:
        list: A list of the rear (last) elements of each tuple.
    """
    return [t[-1] for t in tuples_list]
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试