摘要:
A tuple is a sequence of values. The values can be any type, and they are indexed by integers, so in that respect tuples are a lot like lists. The imp... 阅读全文
posted @ 2014-07-15 19:59
平静缓和用胸音说爱
阅读(208)
评论(0)
推荐(0)
摘要:
If you played with the Fibonacci function, you might have noticed that the bigger the argument you provide, the longer the function takes to run. Furt... 阅读全文
posted @ 2014-07-15 19:08
平静缓和用胸音说爱
阅读(244)
评论(0)
推荐(0)
摘要:
Lists can appear as values in a dictionary. For example, if you were given a dictionary that maps from letters to frequencies, you might want to inver... 阅读全文
posted @ 2014-07-15 17:19
平静缓和用胸音说爱
阅读(223)
评论(0)
推荐(0)
摘要:
If you use a dictionary in a for statement, it traverses the keys of the dictionary. For example, print_hist prints each key and the corresponding val... 阅读全文
posted @ 2014-07-15 13:40
平静缓和用胸音说爱
阅读(242)
评论(0)
推荐(0)

浙公网安备 33010602011771号