题解 | python正则表达式解法
统计大写字母个数
http://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
import re while True: try: a = input() except: break else: result = re.findall(r'[A-Z]',a) print(len(result))
统计大写字母个数
http://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
import re while True: try: a = input() except: break else: result = re.findall(r'[A-Z]',a) print(len(result))
相关推荐