PYTHON-函数调用函数名
- 2020 年 6 月 2 日
- 筆記
- python基础知识, python学习
def fun1(x): print('......................') x() def fun2(): print('**********************') fun1(fun2) #将fun2换为x,x()就相当于fun2(),即调用fun2
def fun1(x): print('......................') x() def fun2(): print('**********************') fun1(fun2) #将fun2换为x,x()就相当于fun2(),即调用fun2