python中函数定义的两种方法

python中定义函数主要有2种方法:

(1)def function()

(2)labmda

以下是在ipython notebook中测试运行。


猜你喜欢

转载自blog.csdn.net/weixin_41770169/article/details/80393244