結果 : how to replace array elements in python