统计输入字符串中每个字符的出现次数,字符区分大小写,且包含所有符号和空格
输入方式:
input()
输出方式:
print()
输入输出示例
# 输入: hello # 输出: {"h": 1, "e": 1, "l": 2, "o": 1}
# 输入: Hello World! # 输出: {"H": 1, "e": 1, "l": 3, "o": 2, " ": 1, "W": 1, "r": 1, "d": 1, "!": 1}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.
Using your Hydro universal account