import re

str = 'abc def  gh ijk'
strAfter = re.sub(' +', '', str)
print(strAfter)

相关文章:

  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2022-02-09
  • 2022-03-10
  • 2021-10-22
相关资源
相似解决方案