获得用户输入的一串字符,分别统计出其中英文字母、空格、数字和其他字符的个数 string=input("请输入一串字符") a,b,c,d=0,0,0,0 for i in string: if i.isdigit(