这是对我的编码。 我必须写出一个方案,让用户能够展示和展示在扼杀中最经常出现的特性。 我不能利用最高或计票职能。 除了这一例子外,我完全失去了我的书。
我试图这样做:
# lst = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
def main():
count = 0
my_sentence = input("Enter a sentence: ")
for ch in my_sentence:
if ch == T or ch == t :
count += 1
print( The letter T appears , count, times. )
main()
找到具体信函是可行的,但对于我来说,我甚至不能开始理解,在任何判决中,我会找到最常用的文字。 我可能会 st。 我在十小时后试图解决这一问题,我可以再想一想。