题解 | #字符串分隔# Python3
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
while True:
try:
l = input()
for i in range(0, len(l), 8):
print("{0:0<8s}".format(l[i:i+8]))
except:
break
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
while True:
try:
l = input()
for i in range(0, len(l), 8):
print("{0:0<8s}".format(l[i:i+8]))
except:
break
相关推荐