题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
from re import A import sys n = str(input()) if len(n) <= 8: print(n.ljust(8,'0')) elif len(n) > 8: list1 = [] for i in range(len(n) // 8 + 1): if len(n[8 * i:8 * i + 8]) == 8 or len(n[8*1:8*i+8]) % 8 != 0: list1.append(n[8 * i:8 * i + 8].ljust(8, '0')) for i in range(len(list1)): print(''.join(list1[i]), end='\n')