언어/python 딕셔너리의 items( ) 함수 - @2023/12/23 안녕하세요 lika-7입니다이번시간에는 딕셔너리의 items( )을 반복문에서 사용하는 대해서 다루겠습니다. example_dictionary = { "키A": "값A", "키B": "값B", "키C": "값C", } for key, element in example_dictionary.items(): print("dictionary[{}] = {}".format(key, element))딕셔너리와 items( ) 함수를 사용하면 키와 값을 조합해서 쉽게 키, 값에 접근 할 수 있습니다. 공유하기 게시글 관리 lika-7의 컴퓨터 프로그램 학습 기록 '언어 > python' 카테고리의 다른 글 주석 (1) 2023.12.23 함수 만들기 (0) 2023.12.23 emunerate( ) (1) 2023.12.23 while 반복문 (0) 2023.12.17 for 반복문 (0) 2023.12.17 Contents 당신이 좋아할만한 콘텐츠 주석 2023.12.23 함수 만들기 2023.12.23 emunerate( ) 2023.12.23 while 반복문 2023.12.17 댓글 0 + 이전 댓글 더보기
@2023/12/23 안녕하세요 lika-7입니다이번시간에는 딕셔너리의 items( )을 반복문에서 사용하는 대해서 다루겠습니다. example_dictionary = { "키A": "값A", "키B": "값B", "키C": "값C", } for key, element in example_dictionary.items(): print("dictionary[{}] = {}".format(key, element))딕셔너리와 items( ) 함수를 사용하면 키와 값을 조합해서 쉽게 키, 값에 접근 할 수 있습니다.