結果 : how to generate all possible substrings of a string python