【发布时间】:2015-02-08 03:20:58
【问题描述】:
我仍然对什么是一流函数感到困惑。如果我理解正确,一等函数应该使用一个函数作为对象。这是正确的吗?
这是一流的功能吗?
def this_is_example(myarg1):
return myarg1
def this_is_another_example(myarg):
return this_is_example(myarg) + myarg
this_is_another_example(1)
【问题讨论】:
标签: python function first-class-functions