赞
踩
函数可以像普通变量一样进行赋值
def hello(): print('hello world') print(hello.__name__) a = hello print(a.__name__) hello() a()
函数可以作为参数传递,扩展函数的功能