从键盘输入字符串统计
其中大写字母的小写字母, 数字以及其他字符的个,数就是字符串形式。 输入形式要含有大写字母 ,数字以及其他字符的字符串, 然后输出统计的个数 。
而且是分行输出 。
s=input()
up=low=num=other=0
for i in s:
if i.isupper():
up+=1
elif i.islower():
low+=1
elif i.isdigit():
num+=1
else:
other+=1
print(up,low,num,other,sep='\n')