用正则中的re.sub方法。

# re.sub(pattern, replaced, string)
import re
re.sub(“\d”,"",string)
# 将字符串中的数字都去掉

相关文章:

  • 2022-02-17
  • 2021-10-17
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2022-12-23
  • 2022-01-26
  • 2021-07-24
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案