用 numerate方法可以不用字典 while True: try: s = input() count = [s.count(i) for i in s] new&nbs...