Skip to content

Commit 9e104cb

Browse files
authored
Merge pull request ksundong#43 from PricelessCode/master
Python Decorator
2 parents 5b577f5 + 4ee674c commit 9e104cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,11 @@ print("hello world!")
10501050
<details>
10511051
<summary>파이썬 데코레이터에 대해 아는대로 설명해주세요.</summary>
10521052
</br>
1053-
<p></p>
1053+
<p>
1054+
어떤 함수가 있을 때 해당 함수를 직접 수정하지 않고 함수에 기능을 추가하고자 할 때 데코레이터를 사용합니다.
1055+
즉, 함수의 전처리나 후처리에 대한 필요가 있을 때 보통 사용합니다.
1056+
이를 통해서 반복을 줄이고 메소드나 함수 책임을 확장시킬 수 있습니다.
1057+
</p>
10541058
</details>
10551059

10561060
<details>

0 commit comments

Comments
 (0)