函数名:
1.函数名本质上就是函数的内存地址

def func(): print(func) func()
2.函数名可以被赋值。

def func1(): func1=1 print(func1) func1()
3.函数名可以当做容器类中的元素。

def func2(*args): print(args) func2(1,2,3,func2)
4.函数名可以当做函数的参数。
标签:code span play one 元素 容器类 nbsp log 参数
1.函数名本质上就是函数的内存地址
def func(): print(func) func()
2.函数名可以被赋值。
def func1(): func1=1 print(func1) func1()
3.函数名可以当做容器类中的元素。
def func2(*args): print(args) func2(1,2,3,func2)
4.函数名可以当做函数的参数。
标签:code span play one 元素 容器类 nbsp log 参数
原文地址:https://www.cnblogs.com/yimiflh/p/8405458.html