728x90
- key, value 1대1 대응
ex_dict = {}
ex_dict["key"] = value
- one key multiple value, 하나의 키에 여러 value 값
import collections
ex_dict = collections.defaultdict(list)
ex_dict["key"].append("value")
리스트 형태로 추가
ex_dict = {}
ex_dict["key"] = value
import collections
ex_dict = collections.defaultdict(list)
ex_dict["key"].append("value")
리스트 형태로 추가