pms*_*pms 0 python function argument-passing
有没有办法在python中实现这样的东西?
another_function( function(x) {return 2*x} )
Run Code Online (Sandbox Code Playgroud)
是:
another_function( lambda x: 2*x )
Run Code Online (Sandbox Code Playgroud)
要明确:这是在another_function调用时发生的,而不是在定义时发生的.
| 归档时间: |
|
| 查看次数: |
145 次 |
| 最近记录: |