- # -*- coding: utf-8 -*-
- # Python 3.3.1
-
- _str = "aAsmr3idd4bgs7Dlsf9eAF"
- count = {}
-
- for _item in sorted(list(_str)):
- if _item in count:
- count[_item] += 1
- else:
- count[_item] = 1
-
-
- print(sorted([(count,word) for word,count in count.items()],reverse=True)[0])
-
- input()
复制代码
|