题解 | #使用字典计数#
使用字典计数
https://www.nowcoder.com/practice/74f7e7f2344f4754bc56d862838cbfc3
from collections import Counter word = input() print(dict(Counter(word)))
使用字典计数
https://www.nowcoder.com/practice/74f7e7f2344f4754bc56d862838cbfc3
from collections import Counter word = input() print(dict(Counter(word)))
相关推荐