题解 | #统计大写字母个数#
统计大写字母个数
https://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
def count_big_chr(str: str) -> int: c: int = 0 for x in str: ord_x = ord(x) if 65 <= ord_x <= 90: c += 1 return c while True: try: s: str = input() print(count_big_chr(s)) except: break