扬帆大鱼
不应该是school么? 比例是0.333333333123456789101112131415def least_vowel_words(text): line=text.strip('.').split() wdict=dict() vowel='aeiouAEIOU' for word in line: num = 0.0 for chr in word: if chr in vowel: num+=1 r=str(float(num/len(word))) if r in wdict: wdict[r]=wdict[r]+[word] else: wdict[r]=[word] print wdict[min(wdict.keys())]