在Python 中,列表 list 是一个有序的序列。 ... l.index(ob) 返回列表中元素 ob 第一次出现的索引位置,如果 ob 不在 l 中会报错。 a.index(12)
確定! 回上一頁