📜  计数大写 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:26.901000             🧑  作者: Mango

代码示例1
def count_upper_case(str):
  uper_case_Count = 0
  for i in range(len(str)):
    if(str[i].isupper()):
      uper_case_Count += 1
  return uper_case_Count
n = input("text>>")
print(count_upper_case(n))