char a = '好';char b = 'a';char c = '1';Console.WriteLine(Char.IsLetter(a));//輸出:TrueConsole.WriteLine(Char.IsLetter(b));//輸出:TrueConsole.WriteLine(Char.IsLetter(c));//輸出:FalseChar.IsLetter的方法說明// // 摘要: // 指示指定的 Unicode 字符是否屬于字母類別。// Indicates whether the specified Unicode character is categorized as an alphabetic letter. // // 參數: // c: // 一個 Unicode 字符。 // // 返回結果: // 如果 c 是字母,則為 true;否則,為 false。我想問的是 難道"好"是字母?
- 2 回答
- 0 關注
- 752 瀏覽
添加回答
舉報
0/150
提交
取消