string = input()
num = 0
ch = 0
space = 0
other = 0
for x in string:
# if x.isnumeric():
if '\u0030'<=x<='\u0039':
num+=1
elif x.isspace():
space+=1
elif x.isalpha() or '\u4e00' <= x <= '\u9fff':
ch+=1
else:
other+=1
print(ch,space,num,other)
来源:CSDN
作者:dandeseed
链接:https://blog.csdn.net/qq_41082953/article/details/104065874