PYTHON-基础扫盲1
1.函数调用函数
def fun1(x): print('......................') x() def fun2(): print('**********************') fun1(fun2) #将fun2换为x,x()就相当于fun2(),即调用fun2
2.列表也可以append列表
>>> b = [1,2,3,4] >>> c = [5,6,7] >>> c.append(b) >>> c [5, 6, 7, [1, 2, 3, 4]] >>>