Python:可以在另一个函数的参数列表中定义函数吗?

pms*_*pms 0 python function argument-passing

有没有办法在python中实现这样的东西?

another_function( function(x) {return 2*x} )
Run Code Online (Sandbox Code Playgroud)

ham*_*ene 9

是:

another_function( lambda x: 2*x )
Run Code Online (Sandbox Code Playgroud)

要明确:这是在another_function调用时发生的,而不是在定义时发生的.