题解 | #字符串分隔#
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
while True:
try:
inpt = input()
if len(inpt)%8 != 0:
inpt=inpt+(8-len(inpt)%8)*"0"
for i in range(0,int(len(inpt)/8)):
print(inpt[0 + 8 * i:8 + 8 * i])
except:
break
查看12道真题和解析