def get_vowels(string):
return[vowel for vowel in string if vowel in 'aeiou']
print("Vowels are",get_vowels('This is some random string'))
Vowels are ['i', 'i', 'o', 'e', 'a', 'o', 'i']
还可以输入200个字
蝈蝈派【海南省教改项目(Hnjg2022-80)支持】 网站版权所有
Python remained the copyright of our website