설명이 장황했던 이번 장의 마지막 절에서는 위치 전용 매개변수와 가변 매개변수에 관해 알아
본다.
8
.
6
위치 전용과 가변 매개변수의 어노테이션
[예제
7
-
9
]의
tag()
함수를 다시 생각해 보자.
7
.
7
.
1
절 ‘위치 전용 매개변수’에서 이 함수의
시그너처를 마지막으로 보았다.
def tag(name, /, *content, class_=None, **attrs):
완전히 어노테이트해 여러 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.