使用多個參數會引起異常。 ... remove(x) 刪除列表中匹配物件x的第一個元素。 ... print (listA.index('a')) # 如果在list 中沒有找到值,Python 會引發一. 個異常。
確定! 回上一頁