Dictionary to list

Jmnote (토론 | 기여)님의 2014년 8월 22일 (금) 10:14 판 (새 문서: ==Python== category: Python <source lang='Python'> dct = {'b': 4, 1: 8, 'a': 2} lst = list(dct) print( lst ) # [1, 'a', 'b'] </source>)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)


Python

dct = {'b': 4, 1: 8, 'a': 2}
lst = list(dct)
print( lst )
# [1, 'a', 'b']
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}