翻轉二維數組

arr = [[1,2,3], [4,5,6], [7,8,9], [10,11,12]]spa

print [[j[i] for j in arr] for i in range(len(arr[0]))]co

相關文章
相關標籤/搜索