Python笔记——list转置

tmpemg为二维列表

tmpemg = [[row[i] for row in tmpemg] for i in range(len(tmpemg[0]))]

你可能感兴趣的:(Python笔记,python,list)