摘要:
Suppose you are given a string and you want to count how many times each letters appears. There are several ways you do it:You could create 26 variabl... 阅读全文
摘要:
A dictionary is like a list, but more general. In a list, the indices have to be integers; in a dictionary they can be (almost) any type. You can thin... 阅读全文