[ Computer Science ]/Python1 [Python/코딩테스트] 파이썬 기본 문법, 내장함수, 라이브러리 sum() min(), max() eval(string) -> 문자열로 된 수식을 계산 sorted( [dictionary] ) -> 키 기준 정 sorted( [dictionary], key=lambda a : x[ a ] ) -> 값 기준 정렬 from itertools import permutations 순열 list( permutations(a, b) ) from itertools import combinations 조합 list( combinations(a,b) ) from itertools import product 중복순열 from itertools import combinations_with_replacement 중복조합 < .. 2024. 2. 9. 이전 1 다음 728x90