Python 4*4矩陣主副對角線之後

def sum_of_diagonals(two_d_list): """[[1,3,2,4],[8,7,5,6],[15,13,12,11],[9,-8,-10,-6]]""" main_diag = [] vice_diag = [] for i in range(len(two_d_list)): for j in range(len(two_
相關文章
相關標籤/搜索