python实现装饰器

it2022-05-05  97

#编写一个装饰器 def zs(x): def h(): return "4"+x() return h @zs def hhh(): return "你好" print(hhh()) ---------运行结果------------- 4你好

 

转载于:https://www.cnblogs.com/tzxy/p/11194608.html


最新回复(0)