怎么将输入的字符串里的字母出现次数输出后,用于for循环中后输出结果?
str1 = input()count = 0for n in str1:if n.isalpha():count += 1print(count)