函数为参数

def func1(s):
s()
return 'f1'
def func2(x):
return 'f2'
func1(func2)
posted @ 2017-10-27 19:49  python学到老  阅读(119)  评论(0)    收藏  举报