//将字符串去掉空格后,转为大写并进行排序
string NewAnswer = string.Empty;
char[] cha = MyAnSwer.Trim().ToUpper().ToArray();
foreach (var item in cha.OrderBy(O => O))
{
NewAnswer += item;
}
将字符串去掉空格后,转为大写并进行排序
最新推荐文章于 2021-05-22 16:38:10 发布