题解 | #字符串分隔#
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
def cutStr(): while True: try: s = input() while len(s) > 8: print(s[0:8]) s = s[8:] if len(s) == 0: pass else: print(s+'0'*(8-len(s))) except: break
if name == "main": cutStr()