题解 | #统计字符#
统计字符
http://www.nowcoder.com/practice/539054b4c33b4776bc350155f7abd8f5
s=input()
a=0
n=0
sp=0
other=0
for i in s:
if i.isalpha():
a+=1
elif i==' ':
sp+=1
elif i in '01234567889':
n+=1
else:
other+=1
print(a)
print(sp)
print(n)
print(other)