python查找字符串所有子串

https://blog.csdn.net/jiangjiang_jian/article/details/79453856

 

  1. [s[i:i + x + 1] for x in range(len(s)) for i in range(len(s) - x)] 
posted @ 2018-08-02 14:44  夜歌乘年少  阅读(4330)  评论(2编辑  收藏  举报