local function GetStringWordNum(str) local fontSize = local lenInByte = #str local count = local i = while true do local curByte = string.byte(str, i) if i > lenInByte then break end local byteCount = and curByte < then byteCount = elseif curByte>
package tes; import java.util.Scanner; //java统计英文字母,空格,数字和其它字符的数目 public class ZiFuTongJi { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("输入字符串:"); int letterCount = 0; // 英文字母个数 int blankCount