結果 : how to replace items in an array python