str=input('请输入英语句子')list1=list(str)
不知道你为什么要进行列表的操作,其实这样子就可以了
gg=input('请输入英语句子') for i in set(gg): print(i,gg.count(i))