注意:ord() 函数:返回字符的ASCII码

while True:
try:
st=input()
s=list(st)#将字符串转为列表
temp=[]#保存字符串列表中出现的每种字符
for i in s:
if i not in temp and 0<=ord(i)<=127:#判断字符是否已经在temp列表,字符在ASCII码范围内(0~127,包括0和127)
temp.append(i)
print(len(temp))
except:
break