s = "abc def ghi xy"
print(','.join(filter(lambda x: x, s.split(' '))))

 

相关文章:

  • 2021-05-29
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2021-11-22
  • 2021-09-22
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-10-18
  • 2021-09-06
  • 2021-11-28
相关资源
相似解决方案