"파이썬 딕셔너리 keys()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
2번째 줄: 2번째 줄:
;파이썬 .keys()
;파이썬 .keys()


<source lang='python' notebook>
<syntaxhighlight lang='python' notebook>
member = { 'ID' : 102, 'Name' : 'YONEZAWA Akinori', 'Address' : 'Naha, Okinawa' }
member = { 'ID' : 102, 'Name' : 'YONEZAWA Akinori', 'Address' : 'Naha, Okinawa' }
print( member.keys() )
print( member.keys() )
</source>
</syntaxhighlight>
<source lang='python' notebook>
<syntaxhighlight lang='python' notebook>
print( list(member.keys()) )
print( list(member.keys()) )
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2021년 4월 10일 (토) 02:45 판

1 개요

파이썬 .keys()
member = { 'ID' : 102, 'Name' : 'YONEZAWA Akinori', 'Address' : 'Naha, Okinawa' }
print( member.keys() )
print( list(member.keys()) )

2 같이 보기

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