题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
def split_8(str1):
if len(str1) > 8:
print(str1[:8])
split_8(str1[8:])
else:
print(str1 + (8-len(str1))*'0')
while True: # 多行输入的话,避免异常
try:
str1 = input("")
split_8(str1)
except:
break
