print(list1)方法意義範例結果 list[n1:n2]取出 n1 到 n2-1 索引的元素 print(list1[1:4]) [5,4,3] list[n1:n2:n3]取出 n1 到 n2-1 索引間隔 n3 的元素 ...
確定! 回上一頁