Python: 将函数作为参数传入函数 2020-01-12 本文已影响0人 wzNote def fun1(): print('fun1') def fun2(fun): fun() #调用时要带括号 fun2(fun1) #传入时不带括号