# 高阶函数：f是第三个参数，用来接收传入的函数
def sum_num(a, b, f):
    return f(a) + f(b)


result1 = sum_num(-1, 5, abs)
print(result1)

result2 = sum_num(1.1, 1.3, round)
print(result2)

3286e2c85b6d8eeac5a87a60f87f3c5f80533459
<mask token>

def sum_num(a, b, f):
    return f(a) + f(b)


<mask token>

def sum_num(a, b, f):
    return f(a) + f(b)


<mask token>
print(result1)
<mask token>
print(result2)

def sum_num(a, b, f):
    return f(a) + f(b)


result1 = sum_num(-1, 5, abs)
print(result1)
result2 = sum_num(1.1, 1.3, round)
print(result2)

# 高阶函数：f是第三个参数，用来接收传入的函数
def sum_num(a, b, f):
    return f(a) + f(b)


result1 = sum_num(-1, 5, abs)
print(result1)

result2 = sum_num(1.1, 1.3, round)
print(result2)
