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

(새 문서: ==개요== ;Python array_unique() <source lang='python' run> a = [ 1,4,5,4,4,3,2,1 ] b = list(set(a)) print( b ) </source> ==같이 보기== * 함수 array_unique() 분류: P...)
 
4번째 줄: 4번째 줄:
<source lang='python' run>
<source lang='python' run>
a = [ 1,4,5,4,4,3,2,1 ]
a = [ 1,4,5,4,4,3,2,1 ]
b = list(set(a))
print( b )
</source>
<source lang='python' run>
a = {'a':'hello', 'b':'world', 'c':'hello'}
b = list(set(a))
b = list(set(a))
print( b )
print( b )

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))
print( b )

2 같이 보기

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