diff options
| author | Андрей Гущин <saintruler@gmail.com> | 2019-05-16 10:39:01 +0300 |
|---|---|---|
| committer | Андрей Гущин <saintruler@gmail.com> | 2019-05-16 10:39:01 +0300 |
| commit | 2748e92b6217dc8202c9aef51e8fa5bbc4210051 (patch) | |
| tree | 22dc48d2d0ab3c2d37f76f886c0d28b4edff6677 /day5/task3/task3.py | |
| parent | 82f5601ca1e8a947b99b7791bd722163d23849dd (diff) | |
| parent | 91795d1dc5328b619e560d3d570647be52ea640e (diff) | |
Merge branch 'day5_task3' into 'master'
День 5, задача 3
See merge request saintruler/trainee!27
Diffstat (limited to 'day5/task3/task3.py')
| -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() |