Python內置數據類型之List篇

List的定義:html li = ["one" , "two" , "three" , "four"] List是一個有序的集合,這點不一樣於Dictionary(Dictionary是無序的)。app (1)索引和切片post 索引有正負之分,正索引下標從0開始,負索引下標從-1開始。好比:spa >>> li[0] 'one' >>> li[3] 'four' >>> li[-1] 'fou
相關文章
相關標籤/搜索