这可能我写的最痛苦的代码 while True: try: s = input() import re value = re.findall("\d+", s) if len(value) == 0: print(s) else: resindex = re.finditer("\d+", s) res = [] for i in resindex: ...