--去除字符串最后的字符[,]号 s1 = s1.Remove(s1.LastIndexOf(","), 1); //1为要删除的个数 转载于:https://www.cnblogs.com/zhangjinpeng/p/4073195.html