結果 : how to replace elements in an array python