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

(새 문서: ==Python== category: Python <source lang='Python'> dct = {'b': 4, 1: 8, 'a': 2} lst = list(dct) print( lst ) # [1, 'a', 'b'] </source>)
 
1번째 줄: 1번째 줄:
 
;dictionary to list


==Python==
==Python==
9번째 줄: 9번째 줄:
# [1, 'a', 'b']
# [1, 'a', 'b']
</source>
</source>
==같이 보기==
*[[list to dictionary]]
*[[dictionary to set]]
*[[dictionary to list]]

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

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 }}