题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
import textwrap str = input() num_len = len(str.strip()) if num_len <= 8: print('{:0<8}'.format(str)) else: for i in range(0,num_len,8): print('{:0<8}'.format(str[i:i+8]))