摘要: python-装饰(高阶函数) 高阶函数 1、把一个函数名当做实参传给另外一个函数(在不修改被装饰函数源代码) 2、返回值 中包含函数名 高阶函数实现1的功能 def bar(): print("in the bar") def test1(func): print("in the test1") 阅读全文
posted @ 2019-12-05 01:23 科子 阅读(251) 评论(0) 推荐(0) 编辑