题解 | #字符串分隔#
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
while True: try: str = input() #字符串长度大于8时,打印8个字符 while(len(str) > 8): print(str[0: 8]); str = str[8:]; #小于8时,补0 for i in range(8 - len(str)): str = str + '0'; print(str) except(EOFError): break;