結果 : substring based on index python