Run ID:67226
提交时间:2024-03-16 10:33:33
letter,word=input().split() while letter: c=0 letter=letter.lower() word=word.lower() for i in range(len(word)): if letter==word[i]: c+=1 a=round(c/len(word),5) print("{:保留五位小数}").format(a) letter, word = input().split()