1 string str = " asdf asd saddf sdfwrqeqw a asdf ";
2 string[] strs = str.Trim().Split(new char[]{' '},StringSplitOptions.RemoveEmptyEntries);
3 string finallStr = string.Join(" ",strs);

 

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-11-17
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2022-03-10
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-09-11
  • 2022-01-20
相关资源
相似解决方案