我希望你能帮我解决这个问题。
所以这是我想要做的事情:
我有三个函数。
分别是say,foo,bar和foo_bar。
def foo_bar(function):
for i in range(20):
function # execute function
def foo(someargs):
print "hello from foo"
def bar(someargs):
print " hello from bar"
当我使用foo_bar(foo)
时,我不知道如何指定给foo的参数?
我期望会看到"来自foo的hello" 20次
?
但由于我没有看到这个结果,显然我对这个问题的理解还不够深入?