Python dict keys()

에어컨 (토론 | 기여)님의 2020년 2월 15일 (토) 11:54 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

파이썬 Dictionary
  • Dictionary 내 Key 값만 출력

2 Dictionary keys()함수[ | ]

alphabet = {}
alphabet = {"A":1, "B":2, "C":3,"D":4,"E":5,"F":6,"G":7,"H":8}
print(alphabet.keys())

3 Dictionary keys()함수 예제[ | ]

alphabet = {}
alphabet = {"A":1, "B":2, "C":3,"D":4,"E":5,"F":6,"G":7,"H":8}
print("A" in alphabet.keys())
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}