"Dictionary to list"의 두 판 사이의 차이

13번째 줄: 13번째 줄:
*[[list to dictionary]]
*[[list to dictionary]]
*[[dictionary to set]]
*[[dictionary to set]]
*[[dictionary to list]]
*[[dictionary to tuple]]

2014년 8월 22일 (금) 10:16 판

dictionary to list

1 Python

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

2 같이 보기

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