diff options
| author | Andrew <saintruler@gmail.com> | 2019-04-25 12:15:27 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2019-04-25 12:15:27 +0400 |
| commit | 91795d1dc5328b619e560d3d570647be52ea640e (patch) | |
| tree | 4f7ab22db0e1331517db1e710afb1e136e38d082 /day5 | |
| parent | 402d0d2b9ebd76b8e99eddceeb85c4a66030b51b (diff) | |
День 5, задача 3
Diffstat (limited to 'day5')
| -rw-r--r-- | day5/task3/task3.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/day5/task3/task3.py b/day5/task3/task3.py new file mode 100644 index 0000000..d3006e5 --- /dev/null +++ b/day5/task3/task3.py @@ -0,0 +1,29 @@ +# Оригинал +""" +def decor(some_params): + def wrapper(pr_function_like_an_arg): + print(some_params) + return pr_function_like_an_arg + + return wrapper + + +@decor('some_params') +def pr_function(): + print(' hi! ') + + +print('---') + + +pr_function() +""" + + +def pr_function(): + print(' hi! ') + + +print('some_params') +print('---') +pr_function() |