l.index(4) 2. To retrieve all indexes of 4, a solution is to use the python list comprehensions: >>> [idx for idx,i in enumerate(l) if i == 4] [2, 3, 4, 5] ...
確定! 回上一頁