题解 | #完全数计算#
字符串分隔
http://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
while True: try: str_input = input() if len(str_input) <= 100: x = 8 i = 0 for j in range(0, int(len(str_input) / x)+1): re_str = (str_input[i:i + x]) if (len(re_str) < x) and (len(re_str) > 0): k = 0 for k in range(x - len(re_str)): re_str = re_str + "0" k += 1 elif len(re_str) == 0: break print(re_str) i = i+x except: break