結果 : get start and end index of substring python