摘要: ###什么是装饰器 所谓的装饰器,其实就是通过装饰器函数,来修改原函数的一些功能,使得原函数不需要修改。 ###装饰器实现 def my_decorator(func): def wrapper(): print("Something is happening before the function 阅读全文
posted @ 2022-05-29 23:54 青山原 阅读(54) 评论(0) 推荐(0) 编辑