专题博客链接
[题解]浙大Python PTA课后习题博客记录(Python)
原题题目
代码实现
goal = ['A','E','I','O','U']
string = input();strl = len(string);count = 0
for i in range(strl):
if string[i] not in goal and 'A'<=string[i]<='Z':
count += 1
print("{:d}".format(count))