public void GetLength() { string str = "abc123中文汉字"; Console.WriteLine(str); int i = System.Text.Encoding.Default.GetBytes(str).Length; int j = str.Length; Console.WriteLine(i); Console.WriteLine(j); }答案:字母和数字占一个字节,汉字站两个字节i = 14j = 10