結果 : replace element in matrix python