判断给定的统计字符串元音字母数量的Python程序是否正确
下列程序用于统计字符串中元音字母(a, e, i, o, u)的数量:
s = "hello world"
vowels = "aeiou"
count = sum(1 for c in s if c in vowels)
print(count)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析