catheread
catheread
题解
题解 | #统计大写字母个数#莫名其妙
全部文章
题解
归档
标签
去牛客网
登录
/
注册
题解 | #统计大写字母个数#莫名其妙
109 浏览
0 回复
2022-06-26
catheread
+关注
统计大写字母个数
http://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
string = input() import re res = 0 for i in string: if re.findall(r'[A-Z]',i): res += 1 print(res)
Python3
举报
收藏
赞
评论加载中...