摘要:
/// /// 获得字符串长度 /// /// 要获得长度的字符串 /// public static int GetLengthOfStr(string str) { int lenTotal = 0; int n = str.Length; string strWord = ""; int asc; for (int i = 0; i 127) lenTotal = lenTotal + 3; else lenTotal = lenTotal + 1; } return lenTotal; } 阅读全文