摘要: # 装饰器的作用:在不修改原有函数代码的情况下,给函数增加新的功能# 下面结合代码实例刨析装饰器的运行逻辑def func_out(func): # 3、执行func_out(test),此时func=test print('Hello', end=' ') # 4、打印Hello def func 阅读全文
posted @ 2022-07-04 00:11 菜花小兔 阅读(54) 评论(0) 推荐(0) 编辑