2.11.2

import string, random, collections
x = string.ascii_letters + string.digits
y = ' '.join([random.choice(x) for i in range(1000)])
count = collections.Counter(y)
for k, v in sorted(count.items()):
print(k, ':', v)

posted @ 2024-10-27 23:13  世梦  阅读(13)  评论(0)    收藏  举报