python decorator
HP+windows7
def f(x):
def g():
x()
return g
@f
def h1():
print "H1"
h1()
x <- h1
g
本文标题:16
本文链接:https://www.haomeiwen.com/subject/cmygvftx.html
网友评论