如何用Python写一个代码区分一个字母是元音或辅音

def is_vowel(c): return len(c) == 1 and c in 'aeiou'char = input()print(is_vowel(char))
如何用Python写一个代码区分一个字母是元音或辅音
def is_vowel(c): return len(c) == 1 and c in 'aeiou'char = input()print(is_vowel(char))2017-08-08
mengvlog 阅读 53 次 更新于 2025-12-15 12:13:10 我来答关注问题0
檬味博客在线解答立即免费咨询

Python相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部