Discuss / Python / 交作业

交作业

Topic source

ByVector

#1 Created at ... [Delete] [Delete and Lock User]
在此插入代码

def deco(func): def wrapper(): print("begin") func() print("end") return wrapper

@deco def myfunc(): print("myfunc called")

myfunc()


  • 1

Reply