统计字符

Python 中等
编写一个函数 `count_chars(s)`,统计字符串中每个字符出现的次数,返回一个字典。 **示例:** ```python print(count_chars('hello')) # {'h': 1, 'e': 1, 'l': 2, 'o': 1} ```

你的代码