"Python array unique()"의 두 판 사이의 차이

10번째 줄: 10번째 줄:
<source lang='python' run>
<source lang='python' run>
a = {'a':'hello', 'b':'world', 'c':'hello'}
a = {'a':'hello', 'b':'world', 'c':'hello'}
b = list(set(a))
b = list(set(a.values()))
print( b )
print( b )
</source>
</source>

2020년 4월 6일 (월) 20:12 판

1 개요

Python array_unique()
a = [ 1,4,5,4,4,3,2,1 ]
b = list(set(a))
print( b )
a = {'a':'hello', 'b':'world', 'c':'hello'}
b = list(set(a.values()))
print( b )

2 같이 보기

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