函数:python与c语言1 def test_func(compute): # ① 定义 test_func(不执行) 2 result = compute(1, 2) # ⑤ 调用 compute,跳转到第5行 3 print(result) # ⑦ 打印结果 4 5 def compute(x, y): # ② 定义 compute(不执行) 6 return x + y # ⑥ 计算1+2,返回3 7 8 test_func(compute) # ③ 调用 test_func,跳转到第1行