DRF 5-20 .items()

Grace Goh·2022년 11월 21일
0

Django Rest Framework

목록 보기
35/36

dictionary의 method

my_dict = {"키값":"밸류값", "some_key":"some_val", "sun":"sunflower"}

for key, value in my_dict.items():
    print(key)
    # print(value)

밸류값
some_val
sunflower

profile
Español, Inglés, Coreano y Python

0개의 댓글