题解 | #统计大写字母个数#
统计大写字母个数
http://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
while True:
try:
l = input()
n = 0
for i in l:
if 65 <= ord(i) <= 90:
n += 1
else:
continue
print(n)
except:
break
try:
l = input()
n = 0
for i in l:
if 65 <= ord(i) <= 90:
n += 1
else:
continue
print(n)
except:
break