你基本上是在尝试转换二维列表。下面是一个实现。
def transpose(l1): l2 = [] for i in range(len(l1[0])): row =[] for item in l1: row.append(item[i]) l2.append(row) return l2