Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改或重写类型的最后一个字。例如:and = 和。所以有人可以帮助我做到这一点并告诉我如何做。另外,当我学习这种语言时,我如何加入更多的单词。请帮我。
string[] words = sentence.Split(' '); words[words.Length - 1] = "newWord"; sentence = string.Join(" ", words);