题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
str1 = input()
if len(str1)<8:
print(str1.ljust(8,"0"))
elif len(str1)>8:
i = 1
k = 0
for i in range(1,len(str1)-7,8):
print(str1[i-1:i+7])
k += 1
print(str1[8*k:].ljust(8,"0"))
else:
print(str1)