Python転置行列

def trans_mat(mat:list):
     return list(map(list、zip(* mat)))

 

おすすめ

転載: www.cnblogs.com/zltzlt-blog/p/Python-Transform-Matrix.html