結果 : swap rows in matrix python without numpy