본문 바로가기

PYTHON

[21] Python - Dictionaries

코드

실행화면

*

print(customer["birthdate"])

print(customer.get("birthdate"))

print(customer.get("address", "default_value"))

차이 알 것 !

'PYTHON' 카테고리의 다른 글

[23] Python - function  (0) 2022.01.12
[22] Python - Emogi Converter  (0) 2022.01.12
[20] Python - Unpacking  (0) 2022.01.12
[19] Python - Tuple  (0) 2022.01.12
[18] Python - List 중복 요소 제거  (0) 2022.01.12