List to dictionary

list to dictionary

1 Python[ | ]

lst = [('a', 2), ('b', 4), (1, 8)]
dct = dict(lst)
print( dct )
# {'b': 4, 1: 8, 'a': 2}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}