📜  交换两列python代码示例

📅  最后修改于: 2022-03-11 14:47:03.499000             🧑  作者: Mango

代码示例1
# 2d array a[row][col] ,  swap the columns h and k
for i in range(row):
    a[i][k] , a[i][h] = a[i][h], a[i][k]