[javascript] 연습해보기
player ={ # "key": "value" "name": "nico", "age": 22, "alive": True, # if you need a list, then do a list inside the dictionary "fav_food": ("burger","pizza"), "friend": { "name": "lynn", "age": 23, "fav_food": ["apple","pizza"] } } player["friend"]["fav_food"].append("apple") # dict안에는 항상 브라켓으로 불러줌 print(player["friend"]) players ={ "name": "nico", "age": 22, "alive": True, # if you need a list..
2023. 2. 26.