while True: try: s = input() N = len(s) max_len = 0 digits = '' for i, c in enumerate(s): k = 0 # 标记遍历跳跃点 if c.isdigit(): # print("begin: ", c) for j in range(i, N): # 注意结尾的边界条件 ...