题解 | #字符串分隔#
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
递归
import sys
def split(s):
s = s.strip()
if s:
print('{:0<8}'.format(s[:8]))
split(s[8:])
for x in sys.stdin:
split(x)
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
递归
import sys
def split(s):
s = s.strip()
if s:
print('{:0<8}'.format(s[:8]))
split(s[8:])
for x in sys.stdin:
split(x)
相关推荐