题解 | #字符串分隔#
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
while True: try: s = input() a,index = '',0 for i in s: a += i index += 1 #如果是8的倍数,直接输出 if index % 8 == 0: print(a) a = '' elif index == len(s): print(a + '0' * (8 - len(a))) except: break