結果 : replace substring at index python