摘要: 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... 阅读全文
posted @ 2014-07-14 12:56 平静缓和用胸音说爱 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-07-14 11:13 平静缓和用胸音说爱 阅读(412) 评论(0) 推荐(0) 编辑