摘要:
Tuple (元组)t = (1, 2, 4, 2, 3)print t.count(2) # 2print t.index(4) # 2print t[1:] #(2, 4, 2, 3)Listlst = [1, 2, 4, 2,4, 3]print lst.count(2) # 2print lst.index(4) # 3print lst[1:] #[2, 4, 2, 4, 3]lst.append(5)lst.remove(4)print lst #[1, 2, 2, 4, 3, 5]Dictionarydicto = {"a":"b"}pri 阅读全文
posted @ 2013-07-13 17:09 钟悍 阅读(181) 评论(0) 推荐(0)
浙公网安备 33010602011771号