刪除 串列項目:ch7-2-3c.py Python 可以使用 del 關鍵字刪除指定索引值的串列項目,如下所示: lst1 = [1, 3, 5, 7, 9, 11, 13] del lst1[2] print(lst1) del lst1[4] ...
確定! 回上一頁