摘要: dict设置默认值 “” A common use of dictionaries is to count occurrences by setting the value of d[key] to 1 on its first occurrence, then increment the value on each subsequent occurrence. This can be done several different ways, but the get() method is the most succinct: ”“” ... 阅读全文
posted @ 2013-04-16 18:29 tangr206 阅读(302) 评论(0) 推荐(0)