Skip to content

Commit 969408a

Browse files
committed
committed from zkp
1 parent 7605376 commit 969408a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

FluentPython/deco.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def deco(func):
2+
def inner():
3+
print("running inner()")
4+
5+
return inner
6+
7+
8+
@deco
9+
def target():
10+
print("running target")
11+
12+
if __name__ == '__main__':
13+
target()

0 commit comments

Comments
 (0)