C# 判断字符是否中文还是英文

    技术2022-05-20  63

    private static bool IsHanZi(string ch) {      byte[] byte_len = System.Text.Encoding.Default.GetBytes(ch);      if (byte_len.Length == 2) { return true; }

         return false; }


    最新回复(0)