C# String判断后缀是否为制定字符
判断string类型的数据末端字符是否为制定字符string.EndsWith("");string testA="XiaoMing_Student";string testB="LiHua_Teacher";public void Judge(){ if (testA.EndsWith("_Student")) { Debug.Log(testA+"是学生"); } if (testB.End