"함수 combinations list()"의 두 판 사이의 차이

(새 문서: ==Python== 분류: Python <source lang='python'> import itertools lst = list(itertools.combinations([1,2,3],2)) print( lst ) # [(1, 2), (1, 3), (2, 3)] ==같이 보기== * 조...)
 
6번째 줄: 6번째 줄:
print( lst )
print( lst )
# [(1, 2), (1, 3), (2, 3)]
# [(1, 2), (1, 3), (2, 3)]
</source>


==같이 보기==
==같이 보기==
* [[조합(combination)]]
* [[조합(combination)]]
* [[함수 permutations_list()]]
* [[함수 permutations_list()]]

2018년 12월 9일 (일) 16:34 판

1 Python

import itertools
lst = list(itertools.combinations([1,2,3],2))
print( lst )
# [(1, 2), (1, 3), (2, 3)]

2 같이 보기

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