結果 : replace with index in python