結果 : how to replace elements of a list in python