본문 바로가기

Algoritm

[Python] 리스트 행렬 전환

arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
arr_T = list(map(list, zip(*arr)))
print(arr_T)

 

'Algoritm' 카테고리의 다른 글

[Python]게임 개발  (0) 2023.02.27
[Python] 왕실의 나이트  (1) 2023.02.21
Greedy  (0) 2023.01.03
[백준] 1991번 : 트리 순회 (python)  (0) 2022.10.01
[백준] 10808번 : 알파벳 개수  (0) 2022.09.30