python 切片方法

使用索引獲取列表的元素(隨機讀取)    列表元素支持用索引訪問,正向索引從0開始                 colors=["red","blue","green"]       colors[0] =="red"       colors[1]=="blue"                 同時,也可以使用負向索引(python中有序序列都支持負向索引)             col
相關文章
相關標籤/搜索