結果 : how to replace a row in a matrix python