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

9번째 줄: 9번째 줄:


==같이 보기==
==같이 보기==
* [[함수 combinations_list()]]
* [[순열]]
* [[순열]]

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

1 Python

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

2 같이 보기

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