题解 | #输出指定长度子串#
输出指定长度子串
http://www.nowcoder.com/practice/f7500a858bde41108f01286f57f554f3
def strings(s,n): if len(s) < n&nbs***bsp;n < 0 : print(-1) else: for i in range(len(s)-n+1): print(s[i:i+n],end=' ') s = input().strip() n = int(input().strip()) strings(s,n)