可以使用数组的方式调用字符串中的字符。string.Compare(string1,string2)比较两个字符串是否相同string1.Equals(string2)判断字符串是否相等。string1.ToUpper();//全部转成大写string1.Tolower();//全部转成小写