파이썬은 사전에서 값을 얻습니다
dict = {'color': 'blue', 'shape': 'square', 'perimeter':20}
dict.get('shape') #returns square
#You can also set a return value in case key doesn't exist (default is None)
dict.get('volume', 'The key was not found') #returns 'The key was not found'
파이썬 dict 값을 목록으로 가져 오기
food_list=list(data.values())
print(food_list)
파이썬에서 키 dict 에서 값을 얻는 방법
# Get a value from a dictionary in python from a key
# Create dictionary
dictionary = {1:"Bob", 2:"Alice", 3:"Jack"}
# Retrieve value from key 2
entry = dictionary[2]
# >>> entry
# Alice
dict 값 목록 가져 오기
d.values()