python中有没有方法实现下面的代码
就是用变量代替函数名使用变量名也能实现函数的功能


def test1():
    print("----1----")

local_name = test1

local_name()