示例: import re my_string = "123Digital0418 135 304" new_string = re.sub(r"\d+", '', my_string) print(new_string)