字符串分隔(Python)
字符串分隔
http://www.nowcoder.com/questionTerminal/d9162298cb5a437aad722fccccaae8a7
请记住 ljust
这个方法:)
while True: try: s = input() m = len(s) % 8 if m: s = s.ljust(len(s) + 8 - m, '0') for i in range(len(s) // 8): print(s[i*8 : (i+1)*8]) except: break