Python values()

1 개요[ | ]

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

2 Dictionary values()함수[ | ]

Python
CPU
0.0s
MEM
8M
0.0s
Copy
alphatbet = {}
alphabet = {"A":1, "B":2, "C":3,"D":4,"E":5,"F":6,"G":7,"H":8}
print(alphabet.values())
dict_values([1, 2, 3, 4, 5, 6, 7, 8])

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

Python
Copy
alphatbet = {}
alphabet = {"A":1, "B":2, "C":3,"D":4,"E":5,"F":6,"G":7,"H":8}
print(4 in alphabet.values())
Loading