示例:
import re
my_string = "123Digital0418 135 304"
new_string = re.sub(r"\d+", '', my_string)
print(new_string)
更多推荐
python使用正则表达式删除字符串中的数字
示例:
import re
my_string = "123Digital0418 135 304"
new_string = re.sub(r"\d+", '', my_string)
print(new_string)
更多推荐
python使用正则表达式删除字符串中的数字
发布评论