s=str('a_ssss_ 123 hel lo.')
letter=0
space=0
digit=0
other=0
for i in s:
if i.isalpha():#判断是否是字母
letter+=1
elif i.isspace():#判断是否是空格
space+=1
elif i.isdigit():#判断是否是数字
digit+=1
else:
other+=1
print('字母个数为{},空格字数为{},数字字数为{},其他字符为{}'.format(letter,space,digit,other))
5.输入三个整数x,y,z,由小到大输出
x=int(input())
y=int(input())
z=int(input())
data=[x,y,z]
temp = 0
for inn in range(len(temp)):
for j in range(i+1,len(data)):
if data[i]>data[j]:
temp = data[i]
data[i] =data[j]
data[j]=temp
print(data)