之字形打印矩阵python实现
#File Name : 之字形打印矩阵.pydef ZigZagPrintMatrix(arr): tc = 0 tr = 0 dr = 0 dc = 0 end_r = len(arr)-1 end_c = len(arr[0])-1 reverse_flag = False while tr != end_r+1: ...