1 개요[ | ]
- 파이썬 Dictionary
- Dictionary 내 Key 값만 출력
2 Dictionary keys()함수[ | ]
Python
CPU
0.0s
MEM
8M
0.0s
Copy
alphabet = {}
alphabet = {"A":1, "B":2, "C":3,"D":4,"E":5,"F":6,"G":7,"H":8}
print(alphabet.keys())
dict_keys(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'])
3 Dictionary keys()함수 예제[ | ]
Python
Copy
alphabet = {}
alphabet = {"A":1, "B":2, "C":3,"D":4,"E":5,"F":6,"G":7,"H":8}
print("A" in alphabet.keys())
Loading
편집자 에어컨
로그인하시면 댓글을 쓸 수 있습니다.