解题思路:
注意事项:
参考代码:
n = input()
a = 0
b = 0
c = 0
d = 0
for i in n:
if (i>='a' and i<='z') or (i>='A' and i<='Z'):
a+=1
elif i>='0'and i<='9':
b+=1
elif i==' ':
c+=1
else:
d+=1
print(a)
print(c)
print(b)
print(d)
0.0分
0 人评分