퀴즈 · 3 questions
🎀 Decorators — 상속 안 쓰고 감싸기
@ / functools.wraps / factory / 클래스 decorator
Level 0호기심
0 XP0/93 lessons0/23 achievements
0/100 XP to next level100 XP to go0% complete
Quiz
01
@deco 는 정확히 뭐와 같을까?Hint
decorator 는 언어에 *새 메커니즘 추가 X* — sugar 있는 함수 적용일 뿐.
02wrapper 에
@functools.wraps(fn) 이 왜 중요?Hint
wraps 없이
@announce 후 hello.__name__ 이 뭐?03인자 받는 decorator 는 nested 함수 몇 단계 필요?
Hint
@retry(times=3) 의 각 (...) 가 한 함수 호출에 해당.댓글 0
🔔 답글 알림 (로그인 필요)로그인 — 댓글을 남기려면 로그인해 주세요.
아직 댓글이 없어요. 첫 댓글을 남겨보세요.