zip(*iterables)
각 iterables 의 요소들을 모으는 이터레이터를 만듭니다.

>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> zipped = zip(x, y)
>>> list(zipped)
[(1, 4), (2, 5), (3, 6)]

docs.python.org

'Programming > Python' 카테고리의 다른 글

web 사용  (0) 2023.08.03
numpy.clip(array, min, max)  (0) 2023.06.03
내장함수 eval  (0) 2023.04.08
내장함수 enumerate  (0) 2023.04.08
pyinstaller 실행파일 만들기  (0) 2021.10.26

+ Recent posts