結果 : how to replace values in an array in python