统计字符串中不同字符个数
print("请输入一串字符")Letter=0Number=0Else=0Space=0x=input()for i in x: if 65<=ord(i)<=122: Letter+=1 elif 48<=ord(i)<=57: Number+=1 elif 32==ord(i): Space+=1 else: Else+=1