Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 밀도기반
- T-검정
- DBSCAN
- list
- 분산분석
- SQL on 하둡
- hive
- pca
- 분포
- 병렬 쿼리 시스템
- p-value
- distribution
- join
- Sawzall
- 데이터프레임
- 유사도
- 가설검정
- 하둡
- k-means
- 교차검증
- dict
- pig
- 결정계수
- 다중공선성
- cross validation
- SPLIT
- DataFrame
- Python
- 딕셔너리
- merge
Archives
- Today
- Total
one of a kind scene
[itertools] 순열(permutations), 조합(combinations), 곱집합(product) 만들기 본문
Python/내장모듈 및 자료구조
[itertools] 순열(permutations), 조합(combinations), 곱집합(product) 만들기
specialscene 2020. 1. 28. 17:26import itertools
print(list(itertools.product(["-", "+"], repeat = 2)))
print(list(itertools.permutations(["-", "+"], 2)))
print(list(itertools.combinations(["-", "+"], 2)))
print(list(itertools.product(["A", "B", "C"], repeat = 2)))
print(list(itertools.permutations(["A", "B", "C"], 2)))
print(list(itertools.combinations(["A", "B", "C"], 2)))
'Python > 내장모듈 및 자료구조' 카테고리의 다른 글
[Python] 튜플(tuple), 리스트(list), 셋(set), 딕셔너리(dict) 비교 (0) | 2020.03.25 |
---|---|
[list] split과 join 사용 (0) | 2020.01.03 |
list 다루기(정렬하기, 역순으로 배치하기, 역순으로 가져오기) (0) | 2019.12.26 |
힙(Heap)구조에 대해서 알아보자(python 내장 모듈 heapq) (1) | 2019.08.02 |