Args + Kwargs 섞어쓰기

최대 1 분 소요

될까? 되네!

찾아보거나 알게된 배경

되나 싶어서 해봤는데 됐다!


요약

def hello_world(name: str, *, echo_size: int = 4):
	for _ in range(echo_size):
		print(f"hello world! {name}")

hello_word("JihwanKim")
hello_word("JihwanKim", echo_size=1)

참고자료

해봤습니다

태그:

카테고리:

업데이트: