string str = "I come from Shanghai.";
//根据空格切割
string[] strS = str.Split(' ');

string tempStr = "";
for (int i = strS.Length - 1; i >= 0; i--)
{
    tempStr = tempStr + strS[i] + " ";
}

//去掉首尾空格
tempStr = tempStr.Trim();

方法有多种。走过路过的朋友,可以发表想法,说说思路。

相关文章:

  • 2021-10-18
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-11-20
  • 2021-05-23
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2021-06-11
  • 2022-12-23
  • 2021-09-24
  • 2021-08-26
相关资源
相似解决方案