#encoding=utf-8
"""
判断一下这句话,有几个数字和几个空白,和几个字母其他字符有几个
"I am a 12 years old girl! hi,me!"
"""
import string
def dealWithSen(s):
spaceNum=0
lettersNum=0
datasNum=0
others=0
for i in s:
if i==" ":
spaceNum+=1
if i.isalpha():
lettersNum+=1
if i.isdigit():
datasNum+=1
others=len(s)-spaceNum-lettersNum-datasNum
return spaceNum,lettersNum,datasNum,others
s="I am a 12 years old girl! hi,me!"
print(dealWithSen(s))