結果 : how to replace values in an array python