题解 | #字符串分隔#
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
while True:
try:
n=input("")
a=len(n)
b=a//8
ct=a%8
if ct==0:
for i in range(b):
print(n[i*8:i*8+8])
else:
U=n+"0"*(8-ct)
d=len(U)//8
for i in range(d):
print(U[i*8:i*8+8])
except:
break