Mbpp/93

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度238 字符
模型生成的代码 (238 字符)
def power(a, b):
    """
    Returns the value of a raised to the power b.

    Parameters:
    a (int or float): The base.
    b (int or float): The exponent.

    Returns:
    int or float: a to the power of b.
    """
    return a ** b
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试