返回指定值第一次出现的索引。
array.index(value)
value
Int:找不到时返回 -1。
Int
-1
items = [1, 2, 3] result = items.index(100)