主页
Python
Python 装饰器
demo_decorators_multiple
运行 ❯
×
更改方向
保存代码
更改主题
def changecase(func): def myinner(): return func().upper() return myinner @changecase def myfunction(): return "Hello Sally" @changecase def otherfunction(): return "I am speed!" print(myfunction()) print(otherfunction())
HELLOSALLY
IAMSPEED!