📅  最后修改于: 2022-03-11 14:56:46.942000             🧑  作者: Mango
代码示例1
In [10]: n=4
In [11]: b = "student"
In [12]: [b[i:i+n] for i in range(len(b)-n+1)]
Out[12]: ['stud', 'tude', 'uden', 'dent']