結果 : generate all possible substrings of a string python