c#如何截掉字符串的最后一个符号

2025-02-24 23:44:07
推荐回答(1个)
回答1:

比如本来有个str = “hello world”

string s=str.substring(0,str.length-1);