Python课后作业 3. 统计大小写字母个数和数字个数(第二次作业)
原题题目代码实现string = input();count1 = count2 = count3 = 0for i in string: if str.isupper(i) :count1+=1 elif str.islower(i): count2+=1 elif str.isdigit(i): count3+=1print("{}\n{}\n{}".format(count1,count2,count3))