반응형

조합은 서로 다른 n개에서 순서 상관 없이 서로 다른 r개를 선택하여 뽑는 것이다.

from itertools import combinations

data = [ 'a''b''c']

result = list(combinations(data2))

print(result)

 

+ Recent posts