#一如既往的c语言写法,9命,我学太久c语言,python居然用不惯了 while True: try: eng = 0 space = 0 num = 0 others = 0 n = input() for i in n: if (i >= 'A' and i <= 'Z')&nbs***bsp;(i >= 'a' and i <= 'z'): eng = eng +1 elif (i >= '0' and i <= '9'): num = num +1 elif (i == ' '): space += 1 else: others +=1 print('%d\n%d\n%d\n%d' %(eng,space,num,others)) #print(eng) #print(space) # print(num) #print(others) except: break