read -p "请输入一个字符:" KEY case "$KEY" in [a-z]|[A-Z]) echo "字母" ;; [0-9]) echo "数字" ;; *) echo "空格、功能键或其他控制字符" esac #一个字符...
a = Text1 '输入一个字符赋值给a If UCase(a) >= "A" And UCase(a) <= "Z" Then '用ucase内部函数转换字母均为大写 Print a + "是字母" ElseIf a >= "0" And a <= "9" Then ' 表示是数字字符 Print a + "是数字" Else '...