python 判断是否是元音字母

 

def is_vowel(char):  
    all_vowels = 'aeiou'  
    return char in all_vowels  
print(is_vowel('c'))  
print(is_vowel('e'))

 

posted @ 2018-11-19 20:12  anobscureretreat  阅读(2900)  评论(0编辑  收藏  举报