append (x) 在列表尾部追加單個物件x。使用多個參數會引起異常。 ... print (listA.index('a')) # 如果在list 中沒有找到值,Python 會引發一. 個異常。
確定! 回上一頁