7-9 统计大写辅音字母 (15分)

在这里插入图片描述

代码

s=input()
count=0
for i in range(len(s)):
    if s[i] not in ['A','E','I','O','U']:
        if s[i].isupper():
            count+=1
print(count)
发布了24 篇原创文章 · 获赞 2 · 访问量 205

猜你喜欢

转载自blog.csdn.net/weixin_45115928/article/details/104434973
今日推荐